Oct-28-2019, 02:18 PM
First of all, you need bytestrings.
You can put everything into one bytestring or a bytearray:
You can put everything into one bytestring or a bytearray:
my_bytestring1 = b'abdx' # bytestringBut you can also work with integers in different representation:
my_bytestring2 = bytes([97, 98, 100, 120]) my_bytestring3 = bytes([0x61, 0x62, 0x64, 0x78])Then you can send the bytestring via serial.write(my_bytestring1)
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!