16 bit color generator (RGB565 color picker)

One of the previous notes was about 16 bits RGB color representationRGB565 format. This note will be based on that note and you will be able to generate any color, within 16 bit color depth, by using the color picker below.

Hexadecimal 24 bit color depth value:

Hexadecimal 16 bit color depth value:

Color picker with preview:
spectrum

C++ array of pointers to objects

I was driving multiple TFT LCDs on the same microcontroller. Each LCD had its own instance and I needed an easy method of iterate through all of them.

The platform I used is a ST Nucleo F411RE board, the programming enviroment is mbed and the TFT LCDs are 2.2 inch ILI9341 display.

By using a single screen, the code could look like this:



On the other hand, by using multiple screens, the code could look like this:



The code is not elegant, but it gets the job done.
Note that the LCDs RST and CS pins need to be individually connected to the microcontroller.

Reference: www.java2s.com

8x8 dot matrix font generator for LCD

This is a javascript based 8x8 pixel font generator for any LCD.

How it works: just click on the dot matrix to enable and disable a dot. On the right side, the equivalent binary code will be generated. The reset button will reset the entire dot matrix. Multiple dot selection is not supported.

 0  0  0  0  0  0  0  0
 0  0  0  0  0  0  0  0
 0  0  0  0  0  0  0  0
 0  0  0  0  0  0  0  0
 0  0  0  0  0  0  0  0
 0  0  0  0  0  0  0  0
 0  0  0  0  0  0  0  0
 0  0  0  0  0  0  0  0

Binary code:


The code for generating "8x8 dot matrix font generator" is taken from www.pial.net.