Ooops... Error in LCD init proc.

This commit is contained in:
Pecusx
2016-11-20 16:38:21 +01:00
committed by GitHub
parent ce1e63eb1f
commit 295655eadc
+2 -2
View File
@@ -148,10 +148,10 @@ class Lcd:
# Initialise the display
def lcd_init(self):
#self._byte_out(0x33,LCD_CMD) # 110011 Initialise LCD?
#self._byte_out(0x32,LCD_CMD) # 110010 Initialise LCD?
self._byte_out(0x00,LCD_CMD) # 000000 Initialise OLED?
self._byte_out(0x02,LCD_CMD) # 000010 Initialise OLED?
self._byte_out(0x33,LCD_CMD) # 110011 Initialise LCD?
self._byte_out(0x32,LCD_CMD) # 110010 Initialise LCD?
# Problem with OLED display after reboot ?? (Pecus)
self._byte_out(0x28,LCD_CMD) # 101000 Data length, number of lines, font size (Pecus)
time.sleep(E_POSTCLEAR) # waiting for longer delay (Pecus)