wip:
This commit is contained in:
@@ -26,9 +26,9 @@ void app_main(void)
|
||||
zh_gpio_init();
|
||||
gpio_set_level(TRIAC_GPIO, LOW);
|
||||
zh_io_expander_init();
|
||||
zh_pcf8574_write_gpio(&led_handle, TS_LED_GREEN, LED_ON);
|
||||
zh_pcf8574_write_gpio(&led_handle, RET_LED_BLUE, LED_ON);
|
||||
zh_pcf8574_write_gpio(&led_handle, EXT_LED_BLUE, LED_ON);
|
||||
// zh_pcf8574_write_gpio(&led_handle, TS_LED_GREEN, LED_ON);
|
||||
// zh_pcf8574_write_gpio(&led_handle, RET_LED_BLUE, LED_ON);
|
||||
// zh_pcf8574_write_gpio(&led_handle, EXT_LED_BLUE, LED_ON);
|
||||
}
|
||||
|
||||
static void zh_wifi_softap_init(void)
|
||||
|
||||
@@ -18,30 +18,32 @@
|
||||
|
||||
#define TRIAC_GPIO GPIO_NUM_4
|
||||
|
||||
#define WIFI_SSID "ATE0004"
|
||||
#define WIFI_SSID "ATE0003"
|
||||
#define WIFI_PASS "repairlab"
|
||||
#define WIFI_CHANNEL 1
|
||||
#define MAX_STA_CONNECTION 4
|
||||
|
||||
#define BUTTON_I2C_ADDRESS 0x22 /*!< U7. */
|
||||
#define LED_I2C_ADDRESS 0x21 /*!< U6. */
|
||||
#define RELAY_I2C_ADDRESS 0x20 /*!< U5. */
|
||||
#define LCD_I2C_ADDRESS 0x20 /*!< U4. */
|
||||
#define BUTTON_I2C_ADDRESS 0x24 /*!< U5. */
|
||||
#define LED_1_I2C_ADDRESS 0x22 /*!< U6. */
|
||||
#define LED_2_I2C_ADDRESS 0x21 /*!< U7. */
|
||||
#define RELAY_I2C_ADDRESS 0x23 /*!< U8. */
|
||||
|
||||
#define GROUND_RELAY 0x00 /*!< Relay K1. RL1 pin on U5. */
|
||||
#define TS_RELAY 0x03 /*!< Relay K4. RL4 pin on U5. */
|
||||
#define RET_RELAY 0x02 /*!< Relay K3. RL3 pin on U5. */
|
||||
#define EXT_RELAY 0x01 /*!< Relay K2. RL2 pin on U5. */
|
||||
// #define GROUND_RELAY 0x00 /*!< Relay K1. RL1 pin on U5. */
|
||||
// #define TS_RELAY 0x03 /*!< Relay K4. RL4 pin on U5. */
|
||||
// #define RET_RELAY 0x02 /*!< Relay K3. RL3 pin on U5. */
|
||||
// #define EXT_RELAY 0x01 /*!< Relay K2. RL2 pin on U5. */
|
||||
|
||||
#define TS_BUTTON 0x00 /*!< Connector BT1. B1-0 on U7. */
|
||||
#define RET_BUTTON 0x01 /*!< Connector BT2. B2-1 on U7. */
|
||||
#define EXT_BUTTON 0x02 /*!< Connector BT3. B3-2 on U7. */
|
||||
// #define TS_BUTTON 0x00 /*!< Connector BT1. B1-0 on U7. */
|
||||
// #define RET_BUTTON 0x01 /*!< Connector BT2. B2-1 on U7. */
|
||||
// #define EXT_BUTTON 0x02 /*!< Connector BT3. B3-2 on U7. */
|
||||
|
||||
#define TS_LED_RED 0x00 /*!< Connector LE1. 2 PIN. L1-0 pin on U6. */
|
||||
#define TS_LED_GREEN 0x01 /*!< Connector LE1. 1 PIN. L1-1 pin on U6. */
|
||||
#define RET_LED_BLUE 0x02 /*!< Connector LE2. 2 PIN. L2-2 pin on U6. */
|
||||
#define RET_LED_GREEN 0x03 /*!< Connector LE2. 1 PIN. L2-3 pin on U6. */
|
||||
#define EXT_LED_BLUE 0x04 /*!< Connector LE3. 2 PIN. L3-4 pin on U6. */
|
||||
#define EXT_LED_GREEN 0x05 /*!< Connector LE3. 1 PIN. L3-5 pin on U6. */
|
||||
// #define TS_LED_RED 0x00 /*!< Connector LE1. 2 PIN. L1-0 pin on U6. */
|
||||
// #define TS_LED_GREEN 0x01 /*!< Connector LE1. 1 PIN. L1-1 pin on U6. */
|
||||
// #define RET_LED_BLUE 0x02 /*!< Connector LE2. 2 PIN. L2-2 pin on U6. */
|
||||
// #define RET_LED_GREEN 0x03 /*!< Connector LE2. 1 PIN. L2-3 pin on U6. */
|
||||
// #define EXT_LED_BLUE 0x04 /*!< Connector LE3. 2 PIN. L3-4 pin on U6. */
|
||||
// #define EXT_LED_GREEN 0x05 /*!< Connector LE3. 1 PIN. L3-5 pin on U6. */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
|
||||
BIN
pcb/BOM_ATE0003.000.001_v.3.xlsx
Normal file
BIN
pcb/BOM_ATE0003.000.001_v.3.xlsx
Normal file
Binary file not shown.
BIN
pcb/Gerber_ATE0003.000.001_v.3.zip
Normal file
BIN
pcb/Gerber_ATE0003.000.001_v.3.zip
Normal file
Binary file not shown.
46102
pcb/SCH_ATE0003.000.001_v.3.pdf
Normal file
46102
pcb/SCH_ATE0003.000.001_v.3.pdf
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user