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:
Kwon Tae-young 2019-02-25 11:09:18 +09:00 committed by Anas Nashif
commit 45fdb5d267

View file

@ -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);