summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc77x/lcd-ssd1815.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tcc77x/lcd-ssd1815.c')
-rw-r--r--firmware/target/arm/tcc77x/lcd-ssd1815.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/firmware/target/arm/tcc77x/lcd-ssd1815.c b/firmware/target/arm/tcc77x/lcd-ssd1815.c
index a6e4481fb2..b41c8d26ef 100644
--- a/firmware/target/arm/tcc77x/lcd-ssd1815.c
+++ b/firmware/target/arm/tcc77x/lcd-ssd1815.c
@@ -129,21 +129,8 @@ void lcd_set_invert_display(bool yesno)
129/* turn the display upside down (call lcd_update() afterwards) */ 129/* turn the display upside down (call lcd_update() afterwards) */
130void lcd_set_flip(bool yesno) 130void lcd_set_flip(bool yesno)
131{ 131{
132 /* TODO: flip mode isn't working. The commands in the else part of 132 (void)yesno;
133 this function are how the original firmware inits the LCD */ 133 /* TODO */
134
135 if (yesno)
136 {
137 lcd_write_command(LCD_SET_SEGMENT_REMAP | 0x01);
138 lcd_write_command(LCD_SET_COM_OUTPUT_SCAN_DIRECTION);
139 xoffset = 132 - LCD_WIDTH; /* 132 colums minus the 128 we have */
140 }
141 else
142 {
143 lcd_write_command(LCD_SET_SEGMENT_REMAP);
144 lcd_write_command(LCD_SET_COM_OUTPUT_SCAN_DIRECTION | 0x08);
145 xoffset = 0;
146 }
147} 134}
148 135
149 136