PiDojo : 7-Segment Displays on the Raspberry Pi

This weekend we continued to explore the Raspberry Pi’s GPIO pins. We had a look at a Data Sheet for a 7-segment display then we went through the code needed to write the number 8 on one and then the Ninjas had a go at writing their own messages on it.

Our 7-Segment display wired up and ready to go.

Our 7-Segment display wired up and ready to go.

Afterwards we tested some code for sending data to two 7-Segment displays by flashing each LED on and off for a fraction of a second and we also had a look at the time.strftime() method which is useful when we need the “time of day” in our code.Next week we will do a little more work with clocks and we will start putting together a measuring device which uses the HC-SR04 Ultrasonic Sensor.

These are my slides from today Raspberry Pi 7-segment display

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s