Shop OBEX P1 Docs P2 Docs Learn Events
Bs2 send data to Bs1? — Parallax Forums

Bs2 send data to Bs1?

Luis_PLuis_P Posts: 246
edited 2012-03-11 16:52 in BASIC Stamp
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?

Comments

  • FranklinFranklin Posts: 4,747
    edited 2012-03-11 16:52
    Do the two equate to the same baud (2400) and do you have a ground between both devices? Also if the bs2 is not sending when the bs1 is receiving you will get nothing as there is no buffer on the stamps.
Sign In or Register to comment.