赞
踩
在如下的位置填写STM32的URL
https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json
直接从github下载STM32的软件包,解压之后放到C:\Users\Administrator\Documents\Arduino\hardware\Arduino_STM32路径下面,每个电脑不一样,放到你的Arduino sketchbook location即可自动识别加载板卡。
使用USB转TTL串口板,RX接PA9,TX接PA10
软件包安装好之后,就可以使用Arduinoide进行程序编写了。
void setup()
{
pinMode(PC13,OUTPUT);
}
void loop()
{
digitalWrite(PC13,HIGH);
delay(500);
digitalWrite(PC13,LOW);
delay(500);
}
注意:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。