drivers: ssd1306: Support GPIO reset function

If dts has reset-gpios information, reset it.

Signed-off-by: Kwon Tae-young <tykwon@m2i.co.kr>
This commit is contained in:
Kwon Tae-young 2019-02-22 17:29:40 +09:00 committed by Anas Nashif
commit e0a8990ea7
2 changed files with 22 additions and 0 deletions

View file

@ -106,4 +106,7 @@
#define SSD1306_READ_MODIFY_WRITE_START 0xe0
#define SSD1306_READ_MODIFY_WRITE_END 0xee
/* time constants in ms */
#define SSD1306_RESET_DELAY 1
#endif