User Tools

Site Tools


inverted_led_display

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
inverted_led_display [2017/04/04 22:17] walkeradmininverted_led_display [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 15: Line 15:
 <color #ed1c24>Please NOTE: </color> You do <color #ed1c24>NOT</color> have to rotate the 7 Segment LED on the PCB, the code does this for you. <color #ed1c24>Please NOTE: </color> You do <color #ed1c24>NOT</color> have to rotate the 7 Segment LED on the PCB, the code does this for you.
 \\  \\ 
 +\\ 
 +{{:ntp_normal.jpg?300|}}    {{:ntp_inverted.jpg?300|}}
 +\\ 
 +\\ 
 +Above we can see the Clock working in 'Normal' mode on the left, and in 'Inverted' mode on the right.
 +\\ 
 +\\ 
 +
 +----
 +==== The Python Code ====
 \\  \\ 
 <sxh [py][; options for SyntaxHighlighter]> <sxh [py][; options for SyntaxHighlighter]>
Line 35: Line 45:
                      
 # Define GPIO ports for the digits 0-3 # Define GPIO ports for the digits 0-3
-gpioDigits = (18,23,24,25) 
 gpioDigits = (25,24,23,18) gpioDigits = (25,24,23,18)
 # 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.1491340654.txt.gz · Last modified: 2023/03/09 22:35 (external edit)