tireinflator/firmware/main/hardware.h

17 lines
354 B
C

// 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 resamplePressure(float &pressureValue, int pin);
void setSoleniod(int solenoidState);
#endif