The Sipeed MAix Bit is a low-cost development board featuring the Kendryte K210 RISC-V (RV64GC) chip.
Interface | Hardware Supported | TinyGo Support |
---|---|---|
GPIO | YES | YES |
UART | YES | YES |
SPI | YES | YES |
I2C | YES | YES |
ADC | NO | NO |
PWM | YES | Not yet |
Documentation for the machine package for the Sipeed MAix Bit
Programs are loaded onto the MAix Bit using the kflash.py
command line utility program. You must install this program before you will be able to flash the MAix Bit board with your TinyGo code.
The latest version of the kflash.py
can be installed using pip3 install kflash
.
tinygo flash -target=maixbit [PATH TO YOUR PROGRAM]
You may get the following error when flashing the MAix Bit:
error: unable to locate a serial port
To resolve this, just specify the MAix Bit’s serial port when flashing using tinygo flash -target=maixbit -port=[MAIXBIT PORT] [PATH TO YOUR PROGRAM]
.