From a0fd5e854778a0cefaae75d933e6d482e5582c62 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 24 Dec 2013 15:25:32 +0100 Subject: hwstub: update zenxfistyle code Change-Id: I7e85101eca7dfc0f68c215936be4aa19749923ad --- utils/hwstub/tools/lua/zenxfistyle.lua | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'utils') diff --git a/utils/hwstub/tools/lua/zenxfistyle.lua b/utils/hwstub/tools/lua/zenxfistyle.lua index b66c15135f..6c43e90dc6 100644 --- a/utils/hwstub/tools/lua/zenxfistyle.lua +++ b/utils/hwstub/tools/lua/zenxfistyle.lua @@ -150,19 +150,15 @@ function ZENXFISTYLE.lcd_init() ZENXFISTYLE.lcd_write(0x22, 0) end - local pix = {} - for i=0,239 do - for j=0,319 do - local r = bit32.rshift(0, 3) - local g = bit32.rshift(0, 2) - local b = bit32.rshift(0xff, 3) - local px = bit32.lshift(r, 11) + bit32.lshift(g, 5) + b - px = bit32.lshift(1, i) - --table.insert(pix, px) - STMP.lcdif.send_pio(true, {px}) - end + for i = 0, 319 do + STMP.lcdif.send_pio(true, {0x3f}) + end + for i = 0, 319 do + STMP.lcdif.send_pio(true, {0xfc0}) + end + for i = 0, 319 do + STMP.lcdif.send_pio(true, {0x3f000}) end - STMP.lcdif.send_pio(true, pix) end function ZENXFISTYLE.backlight_init() -- cgit v1.2.3