This program provides various seven segment and LED functions for the Raspberry Pi.
ss = SevenSegment([3, 5, 7, 8, 10, 11, 12]) (A list of 7 raspberry pi pins) instantiates the seven segment display.
ss.off() turns the seven segment display off, while
ss.on() turns it on again.
ss.digit(4) displays a 4 on the LED.
ss.number(1234567890, 0.3) #Displays the number 1234567890 with one digit each 0.3 sec.
myled = LED(3) instantiates an LED in pin #3
myled.state=True turns on the LED while
myled.state=False turns it off.
Features
- This program provides various seven segment and LED functions for the Raspberry Pi.
- ss = SevenSegment([3, 5, 7, 8, 10, 11, 12]) (A list of 7 raspberry pi pins) instantiates the seven segment display.
- ss.off() turns the seven segment display off, while ss.on() turns it on again.
- ss.digit(4) displays a 4 on the LED.
- ss.number(1234567890, 0.3) displays the number 1234567890 with one digit every 0.3 sec.
- myled = LED(3) instantiates an LED in pin #3
- myled.state=True turns on the LED while myled.state=False turns it off.
Categories
Raspberry PiFollow raspberry-pi-seven-segment-utilities
Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects
Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of raspberry-pi-seven-segment-utilities!