tireinflator/firmware/main/hardware.h
2022-12-18 17:53:00 -07:00

25 lines
469 B
C

// Library for managing hardware
#ifndef _hardware_H_
#define _hardware_H_
#define SOLENOID_STOP 0
#define SOLENOID_INFLATE 1
#define SOLENOID_DEFLATE 2
#define RELAY1_PIN 11
#define RELAY2_PIN 7
#define PRESSURE_SENSOR_PIN A0
extern double simulatedPressure;
void initSimulation();
void initHardware();
void tickSimulation();
void measurePressure(double &pressureValue);
void resamplePressure(double &pressureValue);
void setSoleniod(int solenoidState);
#endif