Tufts CEEO has developed a custom firmware based on MicroPython for LEGO Education SPIKE Prime Hub and SPIKE Essential Hub that enables UART and I2C communication (as well as individual digital pin control) via the SPIKE ports. This allows SPIKE Hubs to communicate with a wide variety of external devices (breadboards, microprocessors, and other third-party electronic hardware). Note: this version of the firmware does NOT support any of the other LEGO functionality (provided by the LEGO Hub OS, like default program, program slots, LEGO Python API, etc).
The LEGO®
Hub supports the MicroPython firmware. To install MicroPython on the hub, you have can either upload a precompiled version or compile it yourself.
install dfu-util2
in the terminal.dfu-util --alt 0 -D <filepath>
(Replace <filepath> with your path from step 3).If you want to compile the MicroPython firmware, follow the instructions on the MicroPython GitHub site.