1,下载软件
https://www.arduino.cc/en/software
购买硬件设备超级便宜:
https://detail.1688.com/offer/607729642347.html?spm=a26352.13672862.offerlist.121.7af9638afU2nu2
https://detail.1688.com/offer/574143571194.html?_t=1719333276237&spm=a2615.7691456.co_0_0_wangpu_score_0_0_0_0_1_0_0000_0.0
2,设置其他管理地址
https://dl.espressif.com/dl/package_esp32_index.json
搜索esp32
安装中,一个是arduino nano esp32 ,另外一个才是 esp32 的小板子
如果遇到失败的情况多实验几次就行了。
3,选择 esp32 设备解决权限问题
因为权限问题导致的,重新设置权限即可:
sudo chmod 777 /dev/ttyUSB0
上传成功!
点亮LED灯 pin 是2
/*
Blink
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/
#define LED_BUILTIN 2
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}