arduino 增加对树莓派单片机RP2040支持
arduino 增加对树莓派单片机RP2040支持用arduino开发板管理器 搜RP2040 即可安装 arduino-pico rp2040-1.3.1。
开发板管理器网站
https://github.com/earlephilhower/arduino-pico/releases/download/1.3.1/package_rp2040_index.json
实测编译例程OK!
由于 RP2040 存储空间比较大。,编译一个小例程 仅占用 10 % 左右空间。
甩 Arduino Uno之类 N条街。:)
多核编程 ,牛!
// Demonstrates a simple use of the setup1()/loop1() functions
// for a multiprocessor run.
// Will output something like, where C0 is running on core 0 and
// C1 is on core 1, in parallel.
// 11:23:07.507 -> C0: Blue leader standing by...
// 11:23:07.507 -> C1: Red leader standing by...
// 11:23:07.507 -> C1: Stay on target...
// 11:23:08.008 -> C1: Stay on target...
// 11:23:08.505 -> C0: Blue leader standing by...
// 11:23:08.505 -> C1: Stay on target...
// 11:23:09.007 -> C1: Stay on target...
// 11:23:09.511 -> C0: Blue leader standing by...
// 11:23:09.511 -> C1: Stay on target...
// 11:23:10.015 -> C1: Stay on target...
// Released to the public domain
// The normal, core0 setup
void setup() {
Serial.begin();
delay(5000);
}
void loop() {
Serial.printf("C0: Blue leader standing by...\n");
delay(1000);
}
// Running on core1
void setup1() {
delay(5000);
Serial.printf("C1: Red leader standing by...\n");
}
void loop1() {
Serial.printf("C1: Stay on target...\n");
delay(500);
} 谢谢楼主分享。 最新更新 arduino-pico rp2040-1.6.2
另外arduinoMbed OS RP2040 2.1.0 已经推出。
例程 越来越多还支持一些高级的功能。
页:
[1]