refactor and first ideas
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user