2

With the Serial Monitor I have the Newline option:

enter image description here

How can I send the same using python?

I tried:

30\r\n

30\r

30\n

import serial

ser = serial.Serial('COM3', 115200)

while True: numIn = input("enter delay value: ") ser.write(numIn.encode('ascii'))

clankill3r
  • 219
  • 2
  • 6
  • 12

0 Answers0