LED
Title: | LED |
Author: | thehappyhippy |
Published: | Mon, 10 Mar 2008 20:20:46 GMT |
_____ Pout >----|_____|----|>|----. R LED _|_ 0V
DIRA[0] := 1 ' Make pin 0 an Output OUTA[0] := 1 ' Make Pin 0 high, LED on OUTA[0] := 0 ' Make Pin 0 low, LED off
-.- 3V3 _____ | Pout >----|_____|----|<|----' R LED
DIRA[0] := 1 ' Make pin 0 an Output OUTA[0] := 0 ' Make Pin 0 low, LED on OUTA[0] := 1 ' Make Pin 0 high, LED off
_____ Red PoutR >---|_____|----|>|----. _____ |----. PoutG >---|_____|----|>|----' | R Green _|_ 0V
DIRA[0] := 1 ' Make pin 0 an Output DIRA[1] := 1 ' Make pin 1 an Output OUTA[0] := 1 ' Make Pin 0 high, and ... OUTA[1] := 0 ' Make Pin 1 low, Red LED on OUTA[0] := 0 ' Make Pin 0 low, and ... OUTA[1] := 1 ' Make Pin 1 high, Green LED on OUTA[0] := 1 ' Make Pin 0 high, and ... OUTA[1] := 1 ' Make Pin 1 high, both LEDs on OUTA[0] := 0 ' Make Pin 0 low, and ... OUTA[1] := 0 ' Make Pin 1 low, both LEDs off
Red _____ .----|>|----. PoutR >---|_____|----| |----. R `----|<|----' | Green | | PoutG >-------------------------------'
DIRA[0] := 1 ' Make pin 0 an Output DIRA[1] := 1 ' Make pin 1 an Output OUTA[0] := 1 ' Make Pin 0 high, and ... OUTA[1] := 0 ' Make Pin 1 low, Red LED on OUTA[0] := 0 ' Make Pin 0 low, and ... OUTA[1] := 1 ' Make Pin 1 high, Green LED on OUTA[0] := 0 ' Make Pin 0 low, and ... OUTA[1] := 0 ' Make Pin 1 low, both LEDs off OUTA[0] := 1 ' Make Pin 0 high, and ... OUTA[1] := 1 ' Make Pin 1 high, both LEDs off