inverted_led_display
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| inverted_led_display [2017/04/04 21:11] – created walkeradmin | inverted_led_display [2017/04/04 22:04] (current) – walkeradmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Inverted LED Display ====== | ====== Inverted LED Display ====== | ||
| + | <color darkorange> | ||
| \\ | \\ | ||
| \\ | \\ | ||
| + | ---- | ||
| + | ==== I made a mistake ==== | ||
| + | \\ | ||
| + | When I designed the PCB for this project. I did what most people would do and I made the PCB the 'right way up' with 40 Way Raspberry pi header and the 7 Segment LED also the normal way up (so you can read it). Later on I realised this was a bit of a mistake, because this means the Raspberry Pi Zero Power and USB connections are now at the bottom, so you can't power this up and put it on a table :(. | ||
| + | \\ | ||
| + | \\ | ||
| + | Fear not though, with some help I have edited the code so that it writes the time upside-down, | ||
| + | \\ | ||
| + | \\ | ||
| + | <color # | ||
| + | \\ | ||
| + | \\ | ||
| + | {{: | ||
| + | \\ | ||
| + | \\ | ||
| + | Above we can see the Clock working in ' | ||
| + | \\ | ||
| + | \\ | ||
| + | ---- | ||
| + | ==== The Python Code ==== | ||
| + | \\ | ||
| <sxh [py][; options for SyntaxHighlighter]> | <sxh [py][; options for SyntaxHighlighter]> | ||
| #! / | #! / | ||
| Line 24: | Line 45: | ||
| | | ||
| # Define GPIO ports for the digits 0-3 | # Define GPIO ports for the digits 0-3 | ||
| - | gpioDigits = (18, | ||
| gpioDigits = (25, | gpioDigits = (25, | ||
| # Pins (12,9,8,6) select digits 0-3 respectively reading LTR on display | # Pins (12,9,8,6) select digits 0-3 respectively reading LTR on display | ||
inverted_led_display.1491340281.txt.gz · Last modified: (external edit)
