你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

不知道大家对Arduino IDE编写STM32代码有没有兴趣

[复制链接]
sandybeauty 发布时间:2014-1-5 21:19
 最近把Arduino的API移植到了STM32平台下(STM32F103系列)。' |- b. o6 w/ C* F6 `
现在可以像编写Arduino板子一样来给STM32编程了。
8 p& w# P) M- {* hGithub地址:http://github.com/MakerLabMe/MakerLabBoard( i8 b" g; L! ?6 p# H, R. o
实现一个LED闪烁只需要10行代码:, w. a( ]4 i( W! m% X
int led = 13;
1 G: [: S# @/ U1 e8 {7 N$ ]0 d ( D5 e5 B' y; I& A
// the setup routine runs once when you press reset:  B( V3 ?$ H2 ^
void setup() {- J$ H2 T& [0 ~
// initialize the digital pin as an output.5 ^6 v" a( b, o
pinMode(led, OUTPUT);( ^8 S4 k( F& k1 F' t0 R8 z- E
}
# h0 w! w5 F6 Z' d2 p( A7 ]) p ( u3 L: ]+ n% ^, Y5 a$ y
// the loop routine runs over and over again forever:( b% b2 d5 B8 S& u7 Z4 H
void loop() {
! H9 D! t2 G& ~. Z+ `digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
- C8 i  `2 M0 c2 j( }% [4 z$ Sdelay(1000);               // wait for a second
8 w+ ^% d! U  S4 v* {( L4 fdigitalWrite(led, LOW);    // turn the LED off by making the voltage LOW& f, D9 C0 V: E3 F0 q
delay(1000);               // wait for a second, f* }+ `  t: K" M7 E: X' K( K3 b
}
收藏 评论2 发布时间:2014-1-5 21:19

举报

2个回答
沐紫 回答时间:2014-1-6 08:42:38

RE:不知道大家对Arduino IDE编写STM32代码有没有兴趣

So easy!
JackH 回答时间:2014-1-6 09:21:46

RE:不知道大家对Arduino IDE编写STM32代码有没有兴趣

感谢分享…5 A) [1 j% k3 X$ ~% v( r
先安装在 Windows的Arduino1.5.4
7 V5 _% d6 Y* B; ^' f1 T1 f不知道ST的开发板能否使用.

所属标签

相似分享

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新和工艺
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版