发帖
13 0 0

【祖传点灯】安信可Ai-M61-32S Arduino 环境测评

dja
注册会员

4

主题

7

回帖

189

积分

注册会员

积分
189
板子申请专区 2357 13 2024-5-18 01:55:33

[i=s] 本帖最后由 dja 于 2024-5-18 02:10 编辑 [/i]<br /> <br />

最近加班太多..

参考

https://bbs.ai-thinker.com/forum.php

https://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=44836

环境

  1. 设置自动检测 Proxy

确保网络畅通

  1. 填入开发板 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

  1. 查找开发板

关键词:BL618

  1. install 开发板

由于网络不太稳定,可能需要重复尝试几次才能成功

  1. 选择开发板

  1. 连接开发板端口

代码

  1. 修改库文件

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};
  1. 编写点灯代码
#define Blue 15

void setup()
{
    pinMode(Blue, OUTPUT);
    digitalWrite(Blue, LOW);
}

void loop()
{
    digitalWrite(Blue, HIGH);
    delay(500);
    digitalWrite(Blue, LOW);
    delay(500);
}

编译烧录运行

  1. 点击 upload
  2. 保持按下 IO2 再短按 EN

进入下载过程之后,可以松开 IO2

  1. 等待 All success

  1. 短按 EN 运行程序

──── 0人觉得很赞 ────

使用道具 举报

2024-5-18 02:11:53
Arduino-Proxy.png BL618-Installed.png BL618-Installing.png BL618-json.png BL618-查找.png BL618-烧录完成.png BL618-选择.png
2024-5-18 02:22:00
补充结果

40ce4a4e5d19b5e84e364455bd4e6c9b.gif
2024-5-18 11:14:04
希望arduino的库越来越丰富
2024-5-18 11:57:28
2024-5-18 12:39:58
点完灯就该到其他功能了
2024-5-18 13:57:08
Francisliu 发表于 2024-5-18 12:39
点完灯就该到其他功能了

今天还会测评一下其他功能
2024-5-18 19:15:39
👍
2024-5-18 20:49:07
言简意赅
2024-5-19 09:43:26
还是arduino用的多呀
您需要登录后才可以回帖 立即登录
高级模式
12下一页
统计信息
  • 会员数: 28248 个
  • 话题数: 40206 篇