i2c.h/.cpp: add IP5306 address

This commit is contained in:
Klaus K Wilting committed 2020-05-01 12:23:46 +02:00
1 parent 904394a200
commit cce3589858
2 files changed
+6 -2

No files matched your search

+5 -2
View File
@@ -5,8 +5,7 @@
// Local logging tag
static const char TAG[] = __FILE__;
void i2c_init(void) {
Wire.begin(MY_DISPLAY_SDA, MY_DISPLAY_SCL, 400000); }
void i2c_init(void) { Wire.begin(MY_DISPLAY_SDA, MY_DISPLAY_SCL, 400000); }
void i2c_deinit(void) {
Wire.~TwoWire(); // shutdown/power off I2C hardware
@@ -53,6 +52,10 @@ int i2c_scan(void) {
ESP_LOGI(TAG, "0x%X: AXP192 power management", addr);
break;
case IP5306_PRIMARY_ADDRESS:
ESP_LOGI(TAG, "0x%X: IP5306 power management", addr);
break;
case QUECTEL_GPS_PRIMARY_ADDRESS:
ESP_LOGI(TAG, "0x%X: Quectel GPS", addr);
break;