After much contemplation, I decided to rewrite the original ILI9163 library that I was using for the LCD. Fortunately, the LCD manual was much easier than I thought to read (http://goo.gl/CNVU8V), so tonight, I went about rewriting the whole LCD driver. I didn’t include any of the gamma correction curves as that would require a bit more thought and reading from me. The bare minimum driver however does work and the original 70 or so SPI writes has been reduced to 20. I’ve also written a couple more functions, notable SleepMode (allows the LCD to enter and exit sleep mode with the 120ms delay that is required) along with screen invert commands.
My best achievement today though however was making improving the string printing capabilities! A relatively easy but very memory intensive method of increasing the size of text is to include a character table for every text you might want to display. The textbook table size for these kind of LCD’s is 5×8 as 5 bytes are required for every character though other sizes such as 10×16 are used too for larger text. Instead of including a ton of character tables (No point wasting space!), I merely interpolate and expand the size of the standard 5×8 character table, allowing 10×16 and 15×24 sized fonts.
The 3 new fonts in different colours!
As you can see in the picture above however, the x and t in text are linked. I might add a kerning feature though at the moment, thats not a biggy!
Wow cool work !! I m working on stm32f4 and you’re website seems to be the only one describing how to use it with stm. Can you please include a link to the code ??? Thank you !!
Hey buddy! I’ve not got any useful code for this yet but I’ll get some for you asap! 🙂
Wow cool work !! I m working on stm32f4 and you’re website seems to be the only one describing how to use it with stm. Can you please include a link to the code ??? Thank you !!
Hey buddy, I’ve not written the library for the STM32F4 but modifying the example I’ve written should be pretty easy 🙂 You can find my blog post here: https://hsel.co.uk/2015/03/06/stm32f0-ili9163-lcd/ Cheers!