Bs2 send data to Bs1?
Luis_P
Posts: 246
I believe this is possible. but i tried many ways and is not working. I have pin 6 on BS2 to send a value then wired to pin 0 on BS1 to received the value and display on screen
' {$STAMP BS2}
' {$PBASIC 2.5}
Value VAR Byte
Value = 5
DO
PAUSE 1000
SEROUT 6, 16780, [value]
LOOP
======================================
' {$STAMP BS1}
' {$PBASIC 1.0}
SYMBOL value = W1
main:
SERIN 0, N2400, (value)
DEBUG value
GOTO main
=========================================
Doesn't work what is wrong? the baud, the code?
' {$STAMP BS2}
' {$PBASIC 2.5}
Value VAR Byte
Value = 5
DO
PAUSE 1000
SEROUT 6, 16780, [value]
LOOP
======================================
' {$STAMP BS1}
' {$PBASIC 1.0}
SYMBOL value = W1
main:
SERIN 0, N2400, (value)
DEBUG value
GOTO main
=========================================
Doesn't work what is wrong? the baud, the code?
Comments