forked from len0rd/rockbox
hwstub: update zenxfistyle code
Change-Id: I7e85101eca7dfc0f68c215936be4aa19749923ad
This commit is contained in:
parent
16de558b36
commit
a0fd5e8547
1 changed files with 8 additions and 12 deletions
|
@ -150,19 +150,15 @@ function ZENXFISTYLE.lcd_init()
|
||||||
ZENXFISTYLE.lcd_write(0x22, 0)
|
ZENXFISTYLE.lcd_write(0x22, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
local pix = {}
|
for i = 0, 319 do
|
||||||
for i=0,239 do
|
STMP.lcdif.send_pio(true, {0x3f})
|
||||||
for j=0,319 do
|
end
|
||||||
local r = bit32.rshift(0, 3)
|
for i = 0, 319 do
|
||||||
local g = bit32.rshift(0, 2)
|
STMP.lcdif.send_pio(true, {0xfc0})
|
||||||
local b = bit32.rshift(0xff, 3)
|
end
|
||||||
local px = bit32.lshift(r, 11) + bit32.lshift(g, 5) + b
|
for i = 0, 319 do
|
||||||
px = bit32.lshift(1, i)
|
STMP.lcdif.send_pio(true, {0x3f000})
|
||||||
--table.insert(pix, px)
|
|
||||||
STMP.lcdif.send_pio(true, {px})
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
STMP.lcdif.send_pio(true, pix)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function ZENXFISTYLE.backlight_init()
|
function ZENXFISTYLE.backlight_init()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue