This commit is contained in:
2025-09-29 09:12:10 +03:00
parent 751c8ee385
commit d08c591b11
3 changed files with 92 additions and 35 deletions

View File

@@ -11,11 +11,11 @@
#define RELAY_OFF LOW
#define RELAY_ON HIGH
#define BUTTON_I2C_ADDRESS 0x00 // U5.
#define LED1_I2C_ADDRESS 0x00 // U6.
#define LED2_I2C_ADDRESS 0x00 // U7.
#define RELAY_I2C_ADDRESS 0x00 // U8.
#define LCD_I2C_ADDRESS 0x00 // U4.
#define BUTTON_I2C_ADDRESS 0x27 // U5.
#define LED1_I2C_ADDRESS 0x25 // U6.
#define LED2_I2C_ADDRESS 0x26 // U7.
#define RELAY_I2C_ADDRESS 0x23 // U8.
#define LCD_I2C_ADDRESS 0x24 // U4.
#define GROUND_RELAY 0x00 // Relay K1. RL1 pin on U8.
#define DMM_RELAY 0x01 // Relay K2. RL2 pin on U8.
@@ -53,15 +53,18 @@ extern "C"
{
#endif
typedef struct
{
char *cmm;
char *channel_1;
char *channel_2;
char *channel_3;
char *channel_4;
uint8_t button;
} component_t;
// typedef struct
// {
// char *cmm;
// char *channel_1;
// char *channel_2;
// // char *channel_3;
// // char *channel_4;
// uint8_t button;
// } component_t;
// void system_setup_task(void *pvParameters);
// void component_setup_function(zh_avr_encoder_event_on_isr_t *event);
#ifdef __cplusplus
}