Electronic Projects for the Raspberry Pi: Book 1 - Interfacing to LED displays, speakers and simple sensors by Seggy Segaran

Electronic Projects for the Raspberry Pi: Book 1 - Interfacing to LED displays, speakers and simple sensors by Seggy Segaran

Author:Seggy Segaran [Segaran, Seggy]
Language: eng
Format: epub, pdf
Publisher: Ohm Books
Published: 2016-12-11T08:00:00+00:00


#tidy up

GPIO.cleanup()

import sys

sys.exit()

When this program is run, it will clear the display and then write a 0 to it. When the button is pressed it will show a random digit from 0 to 6. This will stay on the 7-segment display until the key is released and pressed again. To stop the program press CTRL and C at the same time.

The Python Code for all the project can be found at http://www.sf-innovations.co.uk/projects.html.

Project 4:Driving a tri-colour LED

In this project we are going to drive a tri-colour Red/Green/Blue (RGB) LED and control the brightness of each of the colours from the keyboard. By mixing these colours we should be able to get a wide range of shades.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.