haustorial/prosthesis_controller/definitions.h

42 lines
841 B
C
Raw Normal View History

#ifndef DEFINITION_H_
#define DEFINITION_H_
//Vacuum Pressure Sensor: HX710B
#define PIN_PRESSURE1_OUT 20
#define PIN_PRESSURE2_OUT 21
#define PIN_PRESSURE3_OUT 22
#define PIN_PRESSURE_SCK 15
#define PIN_INPUTARM1 0
#define PIN_INPUTARM2 1
#define PIN_INPUTARM3 2
#define PIN_INPUTAUX 3
//Pins Connected to ULN2803
#define PIN_OUT1 19 //Digital
#define PIN_OUT2 18 //Digital
#define PIN_OUT3 17 //Digital
#define PIN_OUT4 16 //Digital
#define PIN_OUT5 6 //PWM
#define PIN_OUT6 7 //PWM
#define PIN_OUT7 8 //PWM
#define PIN_OUT8 9 //PWM
2024-09-11 09:40:46 +00:00
#define PIN_BUTTON BOARD_BUTTON_PIN //BOARD_BUTTON_PIN = 23
#define PIN_PUMP1 PIN_OUT5
#define PIN_PUMP2 PIN_OUT7
#define PIN_VALVE1 PIN_OUT1
#define PIN_VALVE2 PIN_OUT3
2024-09-11 15:15:34 +00:00
#define PIN_VIBRATION PIN_OUT6
2024-09-11 09:40:46 +00:00
#define PIN_SDA 25
#define PIN_SCL 24
#define PIN_LED BOARD_LED_PIN //BOARD_LED_PIN=14
#endif