psyko
Posts: 2
Joined: Sat Aug 25, 2012 10:42 am

I2C with Numeric Display

Fri Oct 12, 2012 3:33 pm

How can i do something like that https://www.youtube.com/watch?v=n-QBOEkK3hI in Python?
I already know how to connect a Port Expander to the raspi but how can i get letters on the Display?

User avatar
Grumpy Mike
Posts: 936
Joined: Sat Sep 10, 2011 7:49 pm
Location: Manchester (England England)
Contact: Website

Re: I2C with Numeric Display

Mon Oct 15, 2012 8:36 pm

You need to connect each of the segments in the 7 segment display as if they were LEDs with their own current limiting resistor. Then it is a matter of making the patterns correspond the the numbers you want.
This link shows you how to do it in C but Python is very similar. Just use a list to store the bit patterns.
http://www.thebox.myzen.co.uk/Tutorial/Arrays.html

Return to “Python”