Skip to content

Commit

Permalink
timing modification to support upload on pi4
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Nov 18, 2022
1 parent 944b1b0 commit 27a37ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoreset
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import RPi.GPIO as GPIO

DTR = 'TIOCM_DTR'
PIN = 7
PULSE_TIME = 0.32
PULSE_TIME = 0.35
MAX_TIME = 5000

def reset():
time.sleep(0.1)
GPIO.setup(PIN, GPIO.OUT)
GPIO.output(PIN, GPIO.HIGH)
time.sleep(PULSE_TIME)
Expand Down

0 comments on commit 27a37ab

Please sign in to comment.