View Full Version : To set a variable on the PINK to a word value

Ryan Clarke
05-13-2006, 03:36 AM
(Per customer request)

Here is an example of sending a word value to a PINK variable:

' {$STAMP BS2}
' {$PBASIC 2.5}

x VAR Word

x = 12345

SEROUT 8, 396, ["!NB0W10:",DEC x,CLS]


This sets variable 10 to 12345. Remember if this is read back it will be sent as ASCII bytes, format accordingly.


Ryan Clarke
Parallax Tech Support

RClarke@Parallax.com (mailto:RClarke@Parallax.com)

Post Edited (Ryan Clarke (Parallax)) : 5/12/2006 8:59:35 PM GMT