kopia lustrzana https://github.com/peterhinch/micropython-samples
18 wiersze
393 B
Python
18 wiersze
393 B
Python
#!/usr/bin/env python
|
|
# Edit this to match the location of micropython/tools and the Pyboard device
|
|
|
|
import sys
|
|
sys.path.append('/mnt/qnap2/data/Projects/MicroPython/micropython/tools')
|
|
import pyboard
|
|
def main():
|
|
pyb=pyboard.Pyboard('/dev/pyboard')
|
|
pyb.enter_raw_repl()
|
|
try:
|
|
pyb.exec_raw('pyb.bootloader()')
|
|
except:
|
|
pass
|
|
|
|
if __name__ == "__main__":
|
|
main()
|
|
|