Content originally posted in LPCWare by Andrew on Tue Jul 23 23:54:28 MST 2013
The display I am using is a monochrome LCD. So, basically each pixel is represented by one bit such as: 0 - is white colour, 1 is black colour. At the same time I am using LPC1758 MCU which doesn't have a LCD controller.
If you imagine a 16x2 display, when the screen is cleared (all pixels are white) your memory frame buffer will look like:
00000000 00000000
00000000 00000000
Now, if we want to set a (black colour) pixel at position x = 0, y = 1, the frame buffer will look as follows:
00000000 00000000
10000000 00000000
What I need instead is, as follows:
00000000 00000000
00000001 00000000
Basically, order of bits in any given byte in the frame buffer are swapped.
Cheers