I'm having a lot of trouble using two picaxe boards connected together to count numbers one to ninety-nine.
im using the following program for picaxe board no. 1
The second board counts of its own accord as if it is not looking for an input.
Any help would be appreciated,
thanks,
Jamie Patel
im using the following program for picaxe board no. 1
Code:
test:
if pin2 = 1 then flash1
goto test
test2:
if pin2 = 1 then flash2
goto test2
test3:
if pin2 = 1 then flash3
goto test3
test4:
if pin2 = 1 then flash4
goto test4
test5:
if pin2 = 1 then flash5
goto test5
test6:
if pin2 = 1 then flash6
goto test6
test7:
if pin2 = 1 then flash7
goto test7
test8:
if pin2 = 1 then flash8
goto test8
test9:
if pin2 = 1 then flash9
goto test9
test10:
if pin2 = 1 then flash10
goto test10
flash1:
let pins = %00011000
pause 1000
goto test2
flash2:
let pins = %11110011
pause 1000
goto test3
flash3:
let pins = %11111000
pause 1000
goto test4
flash4:
let pins = %10011100
pause 1000
goto test5
flash5:
let pins = %11101100
pause 1000
goto test6
flash6:
let pins = %11101110
pause 1000
goto test7
flash7:
let pins = %00111000
pause 1000
goto test8
flash8:
let pins = %11111111
pause 1000
goto test9
flash9:
let pins = %11111100
pause 1000
goto test10
flash10:
let pins = %01111111
high 0
pause 1000
goto test
... and im using the following program for the second board:
test:
if pin1 = 1 then flash1
goto test
test2:
if pin0 = 1 then flash2
goto test2
test3:
if pin0 = 1 then flash3
goto test3
test4:
if pin0 = 1 then flash4
goto test4
test5:
if pin0 = 1 then flash5
goto test5
test6:
if pin0 = 1 then flash6
goto test6
test7:
if pin0 = 1 then flash7
goto test7
test8:
if pin0 = 1 then flash8
goto test8
test9:
if pin0 = 1 then flash9
goto test9
test10:
if pin0 = 1 then flash10
goto test10
flash1:
let pins = %00011000
pause 1000
goto test2
flash2:
let pins = %11110011
pause 1000
goto test3
flash3:
let pins = %11111000
pause 1000
goto test4
flash4:
let pins = %10011100
pause 1000
goto test5
flash5:
let pins = %11101100
pause 1000
goto test6
flash6:
let pins = %11101110
pause 1000
goto test7
flash7:
let pins = %00111000
pause 1000
goto test8
flash8:
let pins = %11111111
pause 1000
goto test9
flash9:
let pins = %11111100
pause 1000
goto test10
flash10:
let pins = %01111111
pause 1000
goto test
Any help would be appreciated,
thanks,
Jamie Patel
Last edited by a moderator: