Fix 90 and 270 rotations in ILI9320 driver (Thanks jkjk)

This commit is contained in:
inmarket 2014-03-22 11:12:27 +10:00
parent cf6b09538e
commit 863e5a6b2d

View File

@ -330,7 +330,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
case GDISP_ROTATE_90:
acquire_bus(g);
write_reg(g, 0x01, 0x0100);
write_reg(g, 0x01, 0x0000);
write_reg(g, 0x03, 0x1030);
write_reg(g, 0x60, 0x2700);
release_bus(g);
@ -352,7 +352,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
case GDISP_ROTATE_270:
acquire_bus(g);
write_reg(g, 0x01, 0x0000);
write_reg(g, 0x01, 0x0100);
write_reg(g, 0x03, 0x1038);
write_reg(g, 0x60, 0xA700);
release_bus(g);