aboutsummaryrefslogtreecommitdiffstats
path: root/reset.py
blob: 1a4d515032e86a519d926f73b445ec9ca69ff05b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python

import serial
import time

ser = serial.Serial('/dev/ttyACM0', baudrate=115200)
ser.open()

# pull dtr and rts low
ser.setRTS(0)
ser.setDTR(0)

# toggle DTR
ser.setDTR(1)

# close
ser.close()