Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/lexus2k/ssd1306
Browse files Browse the repository at this point in the history
  • Loading branch information
lexus2k committed Oct 28, 2021
2 parents b229322 + d42f23c commit 5a974d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssd1306_hal/esp/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void ssd1306_platform_i2cInit(int8_t busId, uint8_t addr, ssd1306_platform_i2cCo
// init your interface here
if ( busId < 0) busId = I2C_NUM_1;
s_bus_id = busId;
i2c_config_t conf;
i2c_config_t conf = { 0 };
conf.mode = I2C_MODE_MASTER;
conf.sda_io_num = cfg->sda >= 0 ? cfg->sda : 21;
conf.sda_pullup_en = GPIO_PULLUP_ENABLE;
Expand Down

0 comments on commit 5a974d1

Please sign in to comment.