boot.py 279 B

1234567
  1. # boot.py -- run on boot-up
  2. # can run arbitrary Python, but best to keep it minimal
  3. import pyb
  4. #pyb.main('main.py') # main script to run after this one
  5. #pyb.usb_mode('CDC+MSC') # act as a serial and a storage device
  6. #pyb.usb_mode('CDC+HID') # act as a serial device and a mouse