- Category: Raspberry Pi
- Last Updated on Thursday, 04 July 2013 09:29
If you have not read it already, please first refer to the Pi-Lite Users Guide.
Python examples for the Pi-LITE
- Bar graph - shows a set of sliders that you can move to move the corresponding column on the Pi-Lite display
- Bar scroll - scrolls a bar graph over the Pi-Lite display
- Bar up and down - grows a set of bars on the Pi-Lite display and then reduces the size of them
- Pacman - displays the Pacman image complete with munching mouth
- PiLIteStock - displays the value of a stock on the Pi-Lite display (see also stock ticker)
- PiLiteTwitter - listens to your Twitter account and displays tweets as they are received on the Pi-Lite. This example needs access to your Twitter account as described here.
- PiLite Weather - informs you of the weather in London
- PiLiteWordTime - shows the time in London and several other cities around the world
- PiLiteXively - takes a feed of Xively and displays it. It needs access to a Xively account, which is described here.
- VU sample - shows what a VU meter would look like
- VU tk - gives you a set of 2 sliders with which to manipulate the size of the VU meter reading on the Pi-Lite display
Also in the library is a Pi-Lite emulator that behaves just like the real thing, so you can try it out before you buy!
The following are not in the library, but described elsewhere on OpenMicros:
- Stock ticker - displays a series of stock names and values across the Pi-Lite display. The example is also described here.
- MQTT demonstrates how to display data on a Pi LITE by using MQTTdescribed here.
All the examples are open source and you are encouraged to use them to build your own display.
You can run the examples off the command line from the directory in which they are held, e.g.
$ python PiLiteWeather.py
You can also run them from IDLE. Not all the files are IDLE3 compatible, so stick with IDLE for now.