git.s-ol.nu hw/0x33.board/firmware / main
main

Tree @main (Download .tar.gz)

0x33.board firmware

Installation

  1. Copy all files from this repository to the CircuitPython drive
  2. Install the dependencies:
  3. using circup: $ circup [--path /path/to/drive] install -r requirements.txt
  4. manually download the needed libraries from the Adafruit CircuitPython Library Bundle and place them in the lib folder
  5. Set hardware settings in config.py:
    Import the module from hex33board.boards corresponding to the hardware revision you have.

Boot modes

After a reset, boot.py is executed. Depending on the dev_mode value in config.py and whether the menu button (very top left of the board) is pressed, the board boots in different modes:

With dev_mode = False and the button not pressed, the board starts in "normal mode". The board will show up as a read-only flash drive on the computer, and settings changed in the boards menu will be saved automatically.

When the button is pressed, the board starts in "dev mode". In this case the board shows up read-write on the computer and will autoreload as the firmware is changed. While "dev mode" is active, settings changed on the board aren't saved.

If dev_mode = True in config.py, things work the other way around: the board goes into "dev mode" by default, but will start in "normal mode" when the menu key is held during reset.