new code base

This commit is contained in:
2023-03-22 19:36:34 +01:00
parent bd699cd238
commit 66c3d4db74
7 changed files with 160 additions and 210 deletions
+12 -41
View File
@@ -1,43 +1,14 @@
#pragma once
#include <Arduino.h>
// Ethernet
#define IP_ADDRESS "192.168.0.55"
#define IP_PORT 8888
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
// Pins
#define ETHERNET_INT 3
#define ETHERNET_CS 10
#define ETHERNET_RESET A1
#define HALL_INT 2
#define PRESSURE_READ A7
#define BUTTON_READ A6
#define DISPLAY_ACTIVE_READ 9
#define STATUS_LED_1 8
#define STATUS_LED_2 A0
#define SR_LATCH 5
#define SR_CLOCK 6
#define SR_DATA 7
#define SR_OUTPUT_ENABLE A3
#define SR_CLEAR A2
// Shift register output pins
#define VALVE_01 1
#define VALVE_02 2
#define VALVE_03 3
#define VALVE_04 4
#define VALVE_05 5
#define VALVE_06 6
#define VALVE_07 7
#define VALVE_08 8
#define VALVE_09 9
#define VALVE_10 10
#define VALVE_11 11
#define VALVE_12 12
#define ERROR_LAMP 15
#define PUMP_ON_LAMP 16
#define PRESSURE_PIN A7
#define BUTTON_PIN A6
#define SROE_PIN A3
#define STATUS_LED_1_PIN A0
#define DISPLAY_ACTIVE_PIN 9
#define STATUS_LED_2_PIN 8
#define SRSER_PIN 7
#define SRCLK_PIN 6
#define RCLK_PIN 5
#define SSR_PIN 4
#define INT_ETH_PIN 3
#define INT_HALL_PIN 2