i2c.h/.cpp: add IP5306 address
This commit is contained in:
parent
904394a200
commit
cce3589858
@ -8,6 +8,7 @@
|
|||||||
#define BME_PRIMARY_ADDRESS (0x77)
|
#define BME_PRIMARY_ADDRESS (0x77)
|
||||||
#define BME_SECONDARY_ADDRESS (0x76)
|
#define BME_SECONDARY_ADDRESS (0x76)
|
||||||
#define AXP192_PRIMARY_ADDRESS (0x34)
|
#define AXP192_PRIMARY_ADDRESS (0x34)
|
||||||
|
#define IP5306_PRIMARY_ADDRESS (0x75)
|
||||||
#define MCP_24AA02E64_PRIMARY_ADDRESS (0x50)
|
#define MCP_24AA02E64_PRIMARY_ADDRESS (0x50)
|
||||||
#define QUECTEL_GPS_PRIMARY_ADDRESS (0x10)
|
#define QUECTEL_GPS_PRIMARY_ADDRESS (0x10)
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
// Local logging tag
|
// Local logging tag
|
||||||
static const char TAG[] = __FILE__;
|
static const char TAG[] = __FILE__;
|
||||||
|
|
||||||
void i2c_init(void) {
|
void i2c_init(void) { Wire.begin(MY_DISPLAY_SDA, MY_DISPLAY_SCL, 400000); }
|
||||||
Wire.begin(MY_DISPLAY_SDA, MY_DISPLAY_SCL, 400000); }
|
|
||||||
|
|
||||||
void i2c_deinit(void) {
|
void i2c_deinit(void) {
|
||||||
Wire.~TwoWire(); // shutdown/power off I2C hardware
|
Wire.~TwoWire(); // shutdown/power off I2C hardware
|
||||||
@ -53,6 +52,10 @@ int i2c_scan(void) {
|
|||||||
ESP_LOGI(TAG, "0x%X: AXP192 power management", addr);
|
ESP_LOGI(TAG, "0x%X: AXP192 power management", addr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case IP5306_PRIMARY_ADDRESS:
|
||||||
|
ESP_LOGI(TAG, "0x%X: IP5306 power management", addr);
|
||||||
|
break;
|
||||||
|
|
||||||
case QUECTEL_GPS_PRIMARY_ADDRESS:
|
case QUECTEL_GPS_PRIMARY_ADDRESS:
|
||||||
ESP_LOGI(TAG, "0x%X: Quectel GPS", addr);
|
ESP_LOGI(TAG, "0x%X: Quectel GPS", addr);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user