One more feature of this $12 super-spec-ed development board is that it supports MicroPython. It was time for a “Hello World” program.
Components
- Sipeed MAIX Bit development board
- USB Type-C data cable
- Linux Laptop (I used Arch Linux )
If you want to flash the latest firmware, download the latest firmware from here.
sudo ./kflash.py -p /dev/ttyUSB0 -b 115200 ../maixpy_v0.1.1_beta.bin
After flashing the latest firmware, you can login to the device through a serial terminal program like putty or minicom and start MicroPython-ing 🙂
Pressing reset button will reboot the board and will bring up a MicroPython prompt.
Now let us try to blink the on-board LEDs. Sipeed MAIX BIT has an RGB LED wired to 3 GPIOs in active-low configuration. i.e The GPIOs act as current sink here and not as a source to drive the LEDs. We have to map those GPIOs, configure them as outputs and drive them in a loop.
Now let us write a loop to cycle through all 8 combinations of these 3 LEDS. I am adding a counter variable and masking just the last three bits of the counter to feed as logic values for the LEDs.
You can see the RGB LEDs in action below !
Author Profile
Latest entries
- ElectronicsMarch 3, 2019Sipeed Maix Bit, a 64-bit dual core RISC-V AI development board
- ElectronicsFebruary 18, 2017Building a 49cc Street Legal Motorized Bicycle
- ElectronicsDecember 28, 2016Programming STM32 ARM microcontrollers in Arch Linux
- ElectronicsMay 17, 2016ESP8266 – WiFi + Speech Controlled Hexapod Robot