Skip to content

Instantly share code, notes, and snippets.

Created Jul 19, 2019
What would you like to do?
import serial
import time
ser = serial.Serial('/dev/ttyS0', 115200)
def toDecimal(some_string):
decimals = [ord(c) for c in some_string]
return bytes(decimals)
#if not ser.isOpen():
while True:
t =
#print ('%x' % ord(t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment