mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-29 17:36:26 -05:00
Add software reset example for the mta1 programmer
This commit is contained in:
parent
517fafff57
commit
48f32949bc
13
hw/boards/mta1-usb-v1/test/reset.py
Executable file
13
hw/boards/mta1-usb-v1/test/reset.py
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
import hid_test
|
||||
import time
|
||||
|
||||
def reset_mta1():
|
||||
""" Manipulate the GPIO lines on the MTA1-USB-CH552 Programmer to issue a hardware reset to the MTA1 """
|
||||
d = hid_test.ice40_flasher()
|
||||
d.gpio_set_direction(14, True)
|
||||
d.gpio_put(14, False)
|
||||
d.gpio_set_direction(14, False)
|
||||
d.close()
|
||||
|
||||
reset_mta1()
|
Loading…
Reference in New Issue
Block a user