# String to byte

**URL:** <https://forum.arduino.cc/t/string-to-byte/265478>\
**Category:** Syntax & Programs\
**Created:** [October 26, 2014, 12:27am UTC](https://forum.arduino.cc/t/string-to-byte/265478 "2014-10-26T00:27:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![siklosi](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@siklosi](https://forum.arduino.cc/u/siklosi)\
**Post date:** [October 26, 2014, 12:27am UTC](https://forum.arduino.cc/t/string-to-byte/265478/1 "2014-10-26T00:27:06Z")

</div>

Hi,  
How can I convert string(char\*) representation of byte (received through serial and cmdmessanger). I would like to send 8 bits in format 0b0000,0b11111.... and then fill byte array to display lcd.char.  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 8:13pm UTC](https://forum.arduino.cc/t/string-to-byte/265478/2 "2021-05-06T20:13:15Z")

</div>

Closed on May 6, 2021, 8:13pm UTC


