oled_ssd1306: adjust conf to project

This commit is contained in:
King Kévin 2020-01-03 14:29:27 +01:00
parent 35c708dbd1
commit cce117ce70
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ bool oled_ssd1306_setup(uint8_t slave_addr)
return false;
}
oled_ssd1306_slave_addr = slave_addr; // save I²C slave address of SSD1306
i2c_master_setup(OLED_SSD1306_I2C, 400); // setup I²C bus (SSD1306 supports an I²C clock up to 400 kHz)
i2c_master_setup(OLED_SSD1306_I2C, 100); // setup I²C bus (SSD1306 supports an I²C clock up to 400 kHz, but not the other slaves on the I²C bus)
const uint8_t oled_init[] = {
0x00, // control byte: continuous (multiple byes), command
0xae, // Set Display ON/OFF: OFF