123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
-
-
- #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 I2C_GPIO_EXPANDER_COUNT 0
-
-
-
- #define VALVE_COUNT 5
- #define VALVE_PINS 10, 11, 12, 14, 15
-
- #define KICKSTART_PINS -1, -1, -1, -1
-
-
- #define PUMP_COUNT 3
- #define PUMP_PINS 16, 17, 18
-
-
- #define AUTO_PUMP_RUNTIME { 20, 10, 10 }
-
-
- #define SWITCH_COUNT 2
- #define SWITCH_PINS 19, 20
-
-
- #define STIRRER_COUNT 1
- #define LOCK_COUNT 0
- #define AUX_COUNT (STIRRER_COUNT + LOCK_COUNT)
- #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 2
- #define I2C_GPIO_EXPANDER_ADDR 0x20, 0x21
-
-
-
- #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 KICKSTART_PINS 112, 113, 114, 115, 108, 109, 110, 111
-
-
- #define PUMP_COUNT 3
- #define PUMP_PINS 2, 0, 4
-
-
- #define AUTO_PUMP_RUNTIME { 20, 10, 10 }
-
-
- #define STIRRER_COUNT 1
- #define LOCK_COUNT 2
- #define AUX_COUNT (STIRRER_COUNT + LOCK_COUNT)
- #define AUX_PINS 19, 104, 105
-
-
- #define SWITCH_COUNT 2
- #define SWITCH_PINS 26, 25
-
- #define I2C_SDA_PIN 21
- #define I2C_SCL_PIN 22
-
- #endif
-
- #endif
-
-
-
-
- #endif
|