X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/a7be12a4e68fcaaa92f81a394bc316a592ec6270..8571e67d6a7cfb042ebd7dded77094b56409f126:/drivers/displays/tft/hw/st7783.c?ds=sidebyside diff --git a/drivers/displays/tft/hw/st7783.c b/drivers/displays/tft/hw/st7783.c index 82e9aa2..1dbf082 100644 --- a/drivers/displays/tft/hw/st7783.c +++ b/drivers/displays/tft/hw/st7783.c @@ -48,7 +48,7 @@ #include "drivers/displays/tft/touchscreen.h" static lcdOrientation_t lcdOrientation = LCD_ORIENTATION_PORTRAIT; -static lcdProperties_t st7783Properties = { 240, 320, TRUE, TRUE, FALSE }; +static lcdProperties_t st7783Properties = { 240, 320, true, true, false, true, true}; /*************************************************/ /* Private Methods */ @@ -148,15 +148,6 @@ void st7783Command(uint16_t command, uint16_t data) st7783WriteData(data); } -/*************************************************/ -/* Returns the 4-hexdigit controller code */ -/*************************************************/ -uint16_t st7783Type(void) -{ - st7783WriteCmd(0x0); - return st7783ReadData(); -} - /*************************************************/ void st7783SetCursor(uint16_t x, uint16_t y) { @@ -496,7 +487,7 @@ void lcdScroll(int16_t pixels, uint16_t fillColor) /*************************************************/ uint16_t lcdGetControllerID(void) { - return st7783Type(); + return 0x7783; } /*************************************************/