diff --git a/src/x9d/lcd_driver.cpp b/src/x9d/lcd_driver.cpp index dfed4a421..4c21a3f82 100644 --- a/src/x9d/lcd_driver.cpp +++ b/src/x9d/lcd_driver.cpp @@ -8,11 +8,8 @@ * * ****************************************************************************** */ -#include -#include "lcd.h" -#include "spi.h" -#include "hal.h" -#include "Macro_define.h" + +#include "open9x.h" #define WriteData(x) AspiData(x) #define WriteCommand(x) AspiCmd(x) @@ -26,26 +23,14 @@ void Set_Address(u8 x, u8 y) WriteCommand(((y>>4)&0x0F)|0x70); //Set Row Address MSB RA [7:4] } -/**6 ponits in one line share the same address,3 bytes in the buffer. -3 bytes wrote in one time */ void refreshDisplay() { - u8 _x1,_x0,temp_x0,temp_x00; - - _x1 =( DISPLAY_W>>1) + 1; - - temp_x0 = 0; - temp_x00 = temp_x0/3; - - for(uint32_t y0=0; y0<=y1; y0++) - { - Set_Address(0, y0);//change the address every column + for (uint8_t y=0; y