boot.py 480 B

12345678910111213
  1. # LuxStats - boot.py for Pimoroni Tiny 2040 (CircuitPython)
  2. #
  3. # Enables a second USB CDC serial channel ("data") so the LuxStats
  4. # configurator can talk to the board without fighting the REPL console.
  5. #
  6. # After copying this file to CIRCUITPY, power-cycle the board once.
  7. # The board will then expose TWO serial ports:
  8. # - port 1: normal REPL/console
  9. # - port 2: LuxStats data channel (the configurator auto-detects it)
  10. import usb_cdc
  11. usb_cdc.enable(console=True, data=True)