If you have run our example programs, you may have noticed that you can display custom images on the PiFace CAD LCD display, here’s how!
Create a Python file in your favourite text editor and copy the following code
cad = pifacecad.PiFaceCAD()
smileyBM = pifacecad.LCDBitmap([
In this code we created a bitmap, stored it to the LCD's memory and then displayed it. This will draw a smiley face to the PiFace CAD screen. Change the binary values (e.g. 0b01110) to create a different pattern.
Save the file and run it with the version of python you have installed PiFace CAD for
You can create many different bitmaps and store and write up to 8 of these at a time. When you stored the bitmap you gave it the number 0, this is the index number that is used in the write custom bitmap function. Your bitmaps should be stored under the indexes of 0-7.
If you store a new bitmap under an index number where a bitmap was already stored and written to the screen, the character on the screen will update to this new bitmap.