Spin Code & the Phantom LED
Using the Demo Board, can someone tell me why this code lights up the yellow LED on pin 20 and a phantom LED on pin 21 which is half as bright? Thanks in advance.
Humanoido
Humanoido
'' DEMO200.spin for the Demo Board
'' Set yellow LED on pin 20 to output and blink
CON
LED = 20 ' I/O pin
PUB LEDBlink ' Main method on/off signals
dira[LED]~~ ' Set pin to output
repeat ' Loop
! outa[LED] ' Change pin state
waitcnt(clkfreq / 4 + cnt) ' Wait

Comments
Check the schematic http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PropellerDemoBd-RevG-Schem.pdf
Humanoido
'' DEMO2.spin for the Demo Board '' Set a yellow LED on the VGA circuit to output and blink '' Choose p16 - p23 CON LED = 19 ' I/O pin for on/off signals PUB LEDBlink ' Main method to send on/off signals dira[16..23]~~ ' Make the all the LED pins outputs to prevent phantom LEDs repeat ' Loop ! outa[LED] ' Change pin state waitcnt(clkfreq / 4 + cnt) ' WaitHumanoido