With the Serial Monitor I have the Newline option:
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'))

ser.write((numIn + '\r').encode())? How are you checking this? – SoreDakeNoKoto Apr 07 '16 at 00:28(numIn + '\r\n')works. Typing\r\ndoes not for some reason. – clankill3r Apr 07 '16 at 07:35