Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

RS 232 - How do I send hex or binary values
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

RS 232 - How do I send hex or binary values

by Sandy_Crack on Tue Jul 14, 2020 11:58 pm

Hi,

I'm trying to control some external AV devices & I can't figure out how to send binary or hex number via make code on a playground express.

following this tutorial https://learn.adafruit.com/circuit-play ... s?view=all I can send decimal numbers variable and text, but I can't figure out how to send binary or hex.

Ive tried using the 0x & 0b prefixes before the the value but the both the "block" and "javascript" editors of the code don't seem to allow or accept it.

o send hex and binary number

Sandy_Crack
 
Posts: 41
Joined: Wed Aug 21, 2019 10:34 pm

Re: RS 232 - How do I send hex or binary values

by Sandy_Crack on Wed Jul 15, 2020 6:01 am

I found a solution, in that I did the conversion using online hex to ascii & binary to ascii tables and that got things working for me.

I do have another issue with some messages locking up the receiver but I will tinker around a bit more to try and find some logic behind the problem so I can structure a question to get a solution.

Sandy_Crack
 
Posts: 41
Joined: Wed Aug 21, 2019 10:34 pm

Please be positive and constructive with your questions and comments.