Shop OBEX P1 Docs P2 Docs Learn Events
stupid question — Parallax Forums

stupid question

science_geekscience_geek Posts: 247
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

  • LeonLeon Posts: 7,620
    edited 2008-09-14 22:03
    $12?

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • Mike GreenMike Green Posts: 23,101
    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.