Compare commits
1 Commits
no-api-cal
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 861d17f490 |
7
boot.py
Normal file
7
boot.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# boot.py -- run on boot-up
|
||||||
|
# can run arbitrary Python, but best to keep it minimal
|
||||||
|
|
||||||
|
import pyb
|
||||||
|
#pyb.main('main.py') # main script to run after this one
|
||||||
|
#pyb.usb_mode('CDC+MSC') # act as a serial and a storage device
|
||||||
|
#pyb.usb_mode('CDC+HID') # act as a serial device and a mouse
|
||||||
Reference in New Issue
Block a user