登录
首页 » c,c++ » 使用串口控制LED灯组(8个)进行三种不同模式的闪烁

使用串口控制LED灯组(8个)进行三种不同模式的闪烁

于 2022-03-05 发布 文件大小:3.59 MB
0 162
下载积分: 2 下载次数: 1

代码说明:

使用串口控制LED灯组(8个)进行三种不同模式的闪烁,串口给主板发送‘1’、‘2’、‘3’等字符,stm32接收到字符以后,判断进行哪种模式的闪灯运行。第1种模式,8个灯不断闪烁,间隔时间为1s;第2种模式,高四位灯和第四位灯轮流闪烁;第3种模式,偶数位灯和奇数位灯轮流闪烁。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • barcode
    C# barcode 条形码生成器:一款免费条码生成器,输入条形码内容即可完成条形码制作
    2022-05-07 18:21:31下载
    积分:1
  • STM32F107低功耗调试例程源码
    STM32F107低功耗调试例程源码,STM32F107低功耗调试例程源码,STM32F107低功耗调试例程源码,STM32F107低功耗调试例程源码,STM32F107低功耗调试例程源码,STM32F107低功耗调试例程源码,STM32F107低功耗调试例程源码,STM32F107低功耗调试例程源码,STM32F107低功耗调试例程源码,STM32F107低功耗调试例程源码
    2022-03-01 04:11:54下载
    积分:1
  • Winfrom基础控件教程
    Winfrom基础控件教程
    2014-03-18下载
    积分:1
  • C#通过三菱MX控件读取FX系列PLC数据案例
    C#通过三菱MX控件读取FX系列PLC数据案例
    2019-12-12下载
    积分:1
  • MODBUS ASCII及MODBUS RTU通讯
    只需要输入站号地址就可以实现通讯 不需要复杂的LRC及CRC计算
    2019-09-21下载
    积分:1
  • LBM代码
    LBM 方法用于介观尺度流场的数值模拟,能够精确捕捉边界处的变量信息,和模拟区域内的流场信息。
    2022-07-15 02:09:04下载
    积分:1
  • C++源码编写“五人五个爱好”C++源码编写
    C++源码编写“五人五个爱好”C++源码编写-C++ source code to prepare, " Five five-loving" C++ source code to prepare
    2022-07-23 07:34:15下载
    积分:1
  • 28 摄像头定位算法(融合测试) 定位算法2
    28 摄像头定位算法(融合测试) 定位算法2
    2022-05-15 09:21:27下载
    积分:1
  • ancient times, many people committed to the ratio of the circumference research...
    古今中外,许多人致力于圆周率的研究与计算。为了计算出圆周率的越来越好的近似值,一代代的数学家为这个神秘的数贡献了无数的时间与心血。十九世纪前,圆周率的计算进展相当缓慢,十九世纪后,计算圆周率的世界纪录频频创新。整个十九世纪,可以说是圆周率的手工计算量最大的世纪。-ancient times, many people committed to the ratio of the circumference research and calculation. In order to calculate the ratio of the circumference increasingly good approximation, the generations of mathematicians for the mysterious few of the numerous contributions of time and effort. Before the 19th century, the ratio of the circumference calculated Progress has been very slow and 19th centuries, we have calculated the ratio of the circumference of World Records frequently innovation. Throughout the 19th century, it is the ratio of circumference to the manual calculation of the largest in the century.
    2022-01-26 07:40:42下载
    积分:1
  • MFC串口源码
    支持VC 6.0,VS2008开发平台 用法如下: /*全局变量*/ CMCOM Mcom; int I_baudrate[] = {2400,4800,9600,19200,115200,128000,256000},b_in = 0; BYTE byte_size,stop_bit,parity; //波特率 b_in = 4;  //波特率115200 // 串口数据宽度 byte_size = 8; // 停止位个数 stop_bit = ONESTOPBIT; // 校验类型 parity = NOPARITY; if(Mcom.open_com(C_SSCOM_No,I_baudrate[b_in],byte_size,stop_bit,parity) == FALSE) { AfxMessageBox(L"串口打开失败!"); } else { WriteStatusBar(L"串口打开成功!"); }
    2022-07-09 05:32:40下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载