Skip to Main Content
Raspberry Pi Essentials
book

Raspberry Pi Essentials

by Jack Creasey
April 2015
Beginner content levelBeginner
212 pages
4h 47m
English
Packt Publishing
Content preview from Raspberry Pi Essentials

TKinter LED demo

Now, let's explore a window-based interface with more examples of how to drive LEDs.

The code is divided into sections and includes a summary of the functionality for the major blocks but not all of the code. Review the code and the summaries following the image before you download the code from http://1drv.ms/1ysAxkl

In order for you to have a mental model of the LED demo as you read through the code, here is the TKinter interface (GPIO test) when rendered:

TKinter LED demo

Block 1 – initialization

This block loads the required libraries, does initial setup, and defines the TKinter window. It is possible to set the window size here but, in this code, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Raspberry Pi Zero W Wireless Projects

Raspberry Pi Zero W Wireless Projects

Vasilis Tzivaras
Raspberry Pi Hacks

Raspberry Pi Hacks

Ruth Suehle, Tom Callaway

Publisher Resources

ISBN: 9781784396398Supplemental Content