Blame view

software/servo/doc/save_servo/boot.py 315 Bytes
14b996da3   benny   First commit
1
2
3
4
5
6
7
8
9
  # boot.py -- run on boot-up
  # can run arbitrary Python, but best to keep it minimal
  
  import machine
  import pyb
  pyb.main('STM32_controller.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