Integrate relays, improve logging

This commit is contained in:
2022-09-18 16:09:21 -06:00
parent 1833ecf607
commit cc123773b5
3 changed files with 80 additions and 34 deletions
+9 -2
View File
@@ -7,10 +7,17 @@
#define SOLENOID_INFLATE 1
#define SOLENOID_DEFLATE 2
#define RELAY1_PIN 11
#define RELAY2_PIN 7
#define PRESSURE_SENSOR_PIN A0
extern float simulatedPressure;
void initSimulation();
void tickSimulation();
void measurePressure(float &pressureValue, int pin);
void resamplePressure(float &pressureValue, int pin);
void measurePressure(float &pressureValue);
void resamplePressure(float &pressureValue);
void setSoleniod(int solenoidState);
#endif