hi !!
I am trying to make a serial communication between two picaxe 40x2. But its not working. Here is the code :
and the receiver code is :
Can anybody help me out with this problem !! ?
Thank You
I am trying to make a serial communication between two picaxe 40x2. But its not working. Here is the code :
Code:
'transmitter code
#picaxe 40x2
main:
if pinC.0 = 1 then
serout D.1,N2400,("1")
end if
if pinC.1=1 then
serout D.1,N2400,("2")
end if
if pinB.7=1 and pinB.6=0 then
serout D.1,N2400,("3")
end if
if pinB.6=1 and pinB.7=0 then
serout D.1,N2400,("4")
end if
goto main
Code:
#picaxe 40X2
main:
serin D.1,N2400,b1
if b1=1 then
high B.7
end if
if b1=2 then
high B.6
end if
if b1=3 then
high B.5
end if
if b1=4 then
high B.4
end if
goto main
Thank You