Add basic hardware simulation

This commit is contained in:
2022-09-16 20:23:13 -06:00
parent d9c3b6acaa
commit ace6c671a6
3 changed files with 85 additions and 7 deletions
+15
View File
@@ -0,0 +1,15 @@
// Library for managing hardware
#ifndef _hardware_H_
#define _hardware_H_
#define SOLENOID_STOP 0
#define SOLENOID_INFLATE 1
#define SOLENOID_DEFLATE 2
void initSimulation();
void tickSimulation();
void measurePressure(float &pressureValue, int pin);
void setSoleniod(int solenoidState);
#endif