Name the pins to make it easier to understand
authorLukáš Jiřiště <jiriste@icpf.cas.cz>
Mon, 11 Nov 2024 15:59:09 +0000 (16:59 +0100)
committerLukáš Jiřiště <jiriste@icpf.cas.cz>
Mon, 11 Nov 2024 15:59:09 +0000 (16:59 +0100)
Servomatic.ino

index f69b09251919878a259a69ecc732526932e49e13..c33f3614b16426d71280e70ec5b1853931c30e6c 100644 (file)
@@ -1,6 +1,16 @@
 #include "PressureSensor.h"
 #include "Valve.h"
 
+static const int       PRESSURE_SENSOR1_PIN = A1;
+static const int       PRESSURE_SENSOR2_PIN = A2;
+static const int       PRESSURE_SENSOR3_PIN = A3;
+
+static const int       SWITCH_PIN = 8;
+
+static const int       VALVE_THREEWAY_PIN = 9;
+static const int       VALVE_CELL_PIN = 10;
+static const int       VALVE_PRESSURE_SENSOR_PIN = 11;
+
 int    main()
 {
        init();