Aries
New Member
I am baffled ...
The following is a very much cut-down version of a multi-slot program on a 28x2, where the LED combinations indicate which slot is active. For some reason, the yellow LED (on pin C.1) never lights when the real program runs. The code below lights all three LEDs, but when the "let dirsC" is executed, the yellow one goes out. The print of the status of C.0 - C.2 shows 111 before the dirsC and 101 afterwards. The simulator shows 111 both times (which is what I would expect). Any thoughts?
Roger
The following is a very much cut-down version of a multi-slot program on a 28x2, where the LED combinations indicate which slot is active. For some reason, the yellow LED (on pin C.1) never lights when the real program runs. The code below lights all three LEDs, but when the "let dirsC" is executed, the yellow one goes out. The print of the status of C.0 - C.2 shows 111 before the dirsC and 101 afterwards. The simulator shows 111 both times (which is what I would expect). Any thoughts?
Roger
Code:
#picaxe 28x2
#no_table
#no_data
symbol LC_RED = C.0
symbol LC_YELLOW = C.1
symbol LC_BLUE = C.2
pause 1000
high LC_RED
high LC_YELLOW
high LC_BLUE
pause 1000
sertxd(#pinC.0,#pinc.1,#pinC.2,CR,LF)
let dirsC = %11100111
pause 2000
sertxd(#pinC.0,#pinc.1,#pinC.2)
end