Shop OBEX P1 Docs P2 Docs Learn Events
Small help with variables/BS2 — Parallax Forums

Small help with variables/BS2

DosEdgeDosEdge Posts: 33
edited 2006-10-08 14:06 in BASIC Stamp
Could some one tell me how the BS2 read the information from the PINK variable? I modify the PINK variable with a string. How can I display the whole string in the debug terminal from the modified PINK variable using the BS2

Comments

  • MarcelMarcel Posts: 32
    edited 2006-10-08 14:06
    I think it was:
    ' PINK_02.bs2
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    NBVAR VAR Byte(16)
    SEROUT 8,396,[noparse][[/noparse]"!NB0R06"]
    SERIN  7,396,[noparse][[/noparse]STR NBVAR\16\CLS]
    DEBUG STR NBVAR
    END
    

    I do not have the BS2 active yet·but I remember this one did it. You should look on the Parallax site for the PINK examples. Maybe you have them already. Study these examples. Look also in the BS2 Basic book. The used 'STR', ' \16\' etc are explained there.
    Happy thinkering!
    Regards,
    Marcel
Sign In or Register to comment.