本帖最后由 dja 于 2024-5-18 02:10 编辑
最近加班太多..
参考
https://bbs.ai-thinker.com/forum.php
https://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=44836
环境
- 设置自动检测 Proxy
确保网络畅通
- 填入开发板 json 链接
开发板链接:https://github.com/bouffalolab/arduino-bouffalo/releases/latest/download/package_bouffalolab_index.json
开发板镜像链接:https://ghproxy.com/github.com/bouffalolab/arduino-bouffalo/releases/latest/download/package_bouffalolab_index.json
- 查找开发板
关键词:BL618
- install 开发板
由于网络不太稳定,可能需要重复尝试几次才能成功
- 选择开发板
- 连接开发板端口
代码
- 修改库文件
C:\Users\16062\AppData\Local\Arduino15\packages\bouffalolab\hardware\bouffalolab\1.0.5\cores\bl616\wiring_digital.c
uint8_t pin_gpio[] = {11, 12, 14, 15, 16, 17, 18, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34};
uint8_t pin_dac[] = {2, 3};
uint8_t pin_adc[PIN_ADC_CNT] = {0, 1, 10, 13, 19, 20, 27};
- 编写点灯代码
#define Blue 15
void setup()
{
pinMode(Blue, OUTPUT);
digitalWrite(Blue, LOW);
}
void loop()
{
digitalWrite(Blue, HIGH);
delay(500);
digitalWrite(Blue, LOW);
delay(500);
}
编译烧录运行
- 点击 upload
- 保持按下 IO2 再短按 EN
进入下载过程之后,可以松开 IO2
- 等待 All success
- 短按 EN 运行程序