123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
-
-
- #ifndef _CONFIG_PINS_H_
- #define _CONFIG_PINS_H_
-
-
-
-
- #ifdef PLATFORM_AVR
-
- #define BUILTIN_LED_PIN 13
-
-
-
- #ifdef FUNCTION_UI
-
-
-
- #define SERIAL_LCD_TX_PIN 10
-
- #define KEYMATRIX_ROWS 4
- #define KEYMATRIX_COLS 3
- #define KEYMATRIX_ROW_PINS 5, 6, 7, 8
- #define KEYMATRIX_COL_PINS 2, 3, 4
-
- #endif
-
-
-
- #ifdef FUNCTION_CONTROL
-
-
-
-
- #define VALVE_COUNT 5
- #define VALVE_PINS 10, 11, 12, 14, 15
-
-
- #define PUMP_COUNT 3
- #define PUMP_PINS 16, 17, 18
-
-
- #define SWITCH_COUNT 2
- #define SWITCH_PINS 19, 20
-
-
- #define AUX_COUNT 1
- #define AUX_PINS 21
-
- #endif
-
- #endif
-
-
-
-
- #ifdef PLATFORM_ESP
-
- #define BUILTIN_LED_PIN 1
-
-
-
- #ifdef FUNCTION_UI
-
-
-
- #error configuration not supported
-
- #endif
-
-
-
- #ifdef FUNCTION_CONTROL
-
-
-
-
- #define I2C_GPIO_EXPANDER_COUNT 1
- #define I2C_GPIO_EXPANDER_ADDR 0x20
-
-
-
- #define PLANT_COUNT 8
- #define PLANT_PINS 27, 14, 5, 18, 100, 101, 102, 103
-
- #define INLET_PIN 15
-
-
- #define VALVE_COUNT (PLANT_COUNT + 1)
- #define VALVE_PINS PLANT_PINS, INLET_PIN
-
-
- #define PUMP_COUNT 3
- #define PUMP_PINS 2, 0, 4
-
-
- #define AUX_COUNT 1
- #define AUX_PINS 19
-
-
- #define SWITCH_COUNT 2
- #define SWITCH_PINS 26, 25
-
- #define I2C_SDA_PIN 21
- #define I2C_SCL_PIN 22
-
- #endif
-
- #endif
-
-
-
-
- #endif
|