Shop OBEX P1 Docs P2 Docs Learn Events
serout / serin — Parallax Forums

serout / serin

c131frdavec131frdave Posts: 38
edited 2007-11-20 18:34 in BASIC Stamp
When you send a serial out command, can you use decimals instead of hex?

For example:

'Send SETDC command, set duty cycle to 'DD'h, or 86.2%,(Dec 221 out of 256 possible)
'
·· SEROUT·· FM,396,[noparse][[/noparse]$55,$83,$DD]


Can I use instead:

·· SEROUT FM,296,[noparse][[/noparse]$55,$83,221]



I guess I could try it myself...· duh..
··

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-11-20 18:34
    That's the beauty of a rapid development system. You can try all kinds of things and see what happens.
Sign In or Register to comment.