确保固件大于或等于 v0.5.1 114 版本 https://cn.bbs.sipeed.com/d/406-maixpy-maixpy-v051-114-g5f3094f6f/7
运行前先配置你的硬件, https://github.com/sipeed/MaixPy_scripts/tree/master/board。
再运行如下代码即可 https://github.com/sipeed/MaixPy_scripts/blob/master/hardware/demo_gpio_led.py