drivers: ssd1306: Add high and delay for reset.
Add high and delay for reset. Signed-off-by: Kwon Tae-young <tykwon@m2i.co.kr>
This commit is contained in:
parent
a4c0810aa0
commit
45fdb5d267
1 changed files with 2 additions and 0 deletions
|
@ -368,6 +368,8 @@ static int ssd1306_init_device(struct device *dev)
|
|||
};
|
||||
|
||||
#ifdef DT_SOLOMON_SSD1306FB_0_RESET_GPIOS_CONTROLLER
|
||||
gpio_pin_write(driver->reset, DT_SOLOMON_SSD1306FB_0_RESET_GPIOS_PIN, 1);
|
||||
k_sleep(SSD1306_RESET_DELAY);
|
||||
gpio_pin_write(driver->reset, DT_SOLOMON_SSD1306FB_0_RESET_GPIOS_PIN, 0);
|
||||
k_sleep(SSD1306_RESET_DELAY);
|
||||
gpio_pin_write(driver->reset, DT_SOLOMON_SSD1306FB_0_RESET_GPIOS_PIN, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue