SF002-FB-100 走马灯例程
发布: 2009-1-30 14:31 | 作者: jasonjee | 来源: StmFans思蜕盟 OPELC 自由电子联盟
| 松鼠 - STM32开发板例程(一) LED 走马灯
|
| http://www.stmfans.com/bbs/viewthread.php?tid=2164&page=1&extra=page%3D1#pid14561 |
| 松鼠开发板 IAR5.20 + J-LINK 开发环境 |
创建项目的过程请参考: 豆皮跑马灯教程 |
必要跳线设置: 请将LCD跳线,全部用短路块短接 请将LED跳线,全部用短路块短接 |
| 代码摘要: //设置指定的数据端口位 GPIO_SetBits(GPIOB, GPIO_Pin_12); delay(); //清除指定的数据端口位 GPIO_ResetBits(GPIOB, GPIO_Pin_12); GPIO_SetBits(GPIOB, GPIO_Pin_13); delay(); GPIO_ResetBits(GPIOB, GPIO_Pin_13); GPIO_SetBits(GPIOB, GPIO_Pin_14); delay(); GPIO_ResetBits(GPIOB, GPIO_Pin_14); GPIO_SetBits(GPIOB, GPIO_Pin_15); delay(); GPIO_ResetBits(GPIOB, GPIO_Pin_15); |
| 代码下载:
|


今天一水到底
好帖子就是要顶~~~~~~~~~~~
连连看黄金矿工拳皇祖玛双人小游戏