Python Forum

Full Version: Serial toggles serial, but no data
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,


I can't figure out the problem here? I got a toggle on my serial bus Teensy 3.2. But no data?


import time
import serial

# configure the serial connections (the parameters differs on the device you are connecting to)

ser = serial.Serial('COM10',115200,timeout = None)
print (ser)

print ("Sleeping")
time.sleep(0.5)
print ("Awake")

ser.write(32)


print ("EOF")
Regards,
32 is the decimal value for ascii space, so i wouldn't expect to see anything, try 65 which is 'A'
(Sep-08-2019, 02:17 AM)Larz60+ Wrote: [ -> ]32 is the decimal value for ascii space, so i wouldn't expect to see anything, try 65 which is 'A'


It's passing integers, so theres not much to go wrong. Everything works when using a console or the serial monitor?