Tinkering with LCD display code

I want to tinker/play around with LCD controller a bit to become familiar with the display hardware and driver code.

As a test I’m using the Hello word example and changed the following line in HWLCD.cpp and compliled it using Embitz

in line 234 changed:

write_data(0x1030);

Into:

write_data(0x1038);

Build the lot and ran the .bin on my Pokitto. I expected something to change. But the display remained the same. I also tested the other tests mentioned in the source. But nothing seems to change.

I reversed the .elf file to check whether the code actually gets compiled properly which it does. There must me something I’m missing. Any help appreciated.

1 Like

Have a dig through the screen refresh code, the rotation value is reset every frame.

1 Like

Specifically, you want to look at void Pokitto::lcdPrepareRefresh() in HWLCD.cpp.

2 Likes

Thanks @FManga That was it!.

2 Likes