23 lines
723 B
C
23 lines
723 B
C
#pragma once
|
|
#include <Arduino.h>
|
|
#include "system.h"
|
|
#include "PWM_Output.h"
|
|
#include "Ramp_Lights.h"
|
|
|
|
|
|
extern SYS_SETTINGS sys_settings;
|
|
extern PWM_Output *pwmOutputs[4];
|
|
extern RAMP_LIGHT *rampLight1;
|
|
extern RAMP_LIGHT *rampLight2;
|
|
extern String booth_file_path;
|
|
extern float PowerVin;
|
|
extern float PowerVinAlpha;
|
|
extern float prevPowerVin;
|
|
|
|
void Init_ADC(void);
|
|
float readBoardInputVoltage(void);
|
|
void Get_Board_and_Booth_File_Paths(const char *, String &, String &);
|
|
void Load_Booth_Settings(SYS_SETTINGS &sys, const String &boothPath);
|
|
void Init_PWM_Outputs(int8_t (&pin)[4], PWM_OUT_SETTINGS (&pwmSettings)[4]);
|
|
void Init_Ramp_Lights(RAMP_LIGHT_SETTINGS (&settings)[2], OneButton *(&btn)[3], PWM_Output *(&pwm)[4]);
|