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