Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
stupid question — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
Propeller 1
stupid question
science_geek
Posts:
247
2008-09-14 21:57
edited 2008-09-14 22:15
in
Propeller 1
i feel really stupid for asking this, but how do you write something to hex, here is an example
Serial.tx(00hex)
·
Comments
Leon
Posts:
7,620
2008-09-14 22:03
edited 2008-09-14 22:03
$12?
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Mike Green
Posts:
23,101
2008-09-14 22:15
edited 2008-09-14 22:15
If you want to see it as hex on the other end (like "12"), use Serial.hex(18,2). Note that this doesn't put the "$" in front and the 2nd parameter is the number of hex digits you want to see.
Sign In
or
Register
to comment.
Comments
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle