-
程序实例
说明: stm32103基础程序、 led流水灯、2 SysTick中断、3 SysTick查询、3 SysTick查询(二)、4 GPIO按键输入(Stm32103 basic procedures, LED water light, 2 SysTick interrupt, 3 SysTick query, 3 SysTick query (two), 4 GPIO key input)
- 2020-08-20 12:37:11下载
- 积分:1
-
贪食蛇小游戏
用键盘上下左右控制的贪食蛇小游戏
功能说明:按键驱动扫描
入口参数:无
出口参数:扫描一次键盘以获得按键句柄
注:交OSReadKey()函数调用
需要根据实际硬件的键盘接口修改
功能说明:读取按键动作
入口参数:无
出口参数:返回按键动作
注:没有按键动作,则返回0,1号按键动作,返回1-4
2号按键动作,返回5-8,如此类推
返回1、5、..:确认短按按下
返回2、6、..:确认长按按下
返回3、7、..:确认短按松开
返回4、8、..:确认长按松开
- 2022-04-28 10:14:51下载
- 积分:1
-
bpNN
bp神经网络变形预测源程序(有待改进),很短的一段代码,所有直接写在TXT文件中。(bp neural network prediction deformation source (room for improvement), a very short piece of code, all directly in the TXT file.)
- 2008-07-30 14:43:56下载
- 积分:1
-
最优路径源码
最优路径源码,计算机图论,可以直接应用到电气,导航等专业
- 2022-01-26 03:42:12下载
- 积分:1
-
CANopenNode源代码
CANopenNode is free and open source software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
- 2022-02-02 00:41:16下载
- 积分:1
-
C #发达的地图基本浏览器和属性查询的例子!
c#开发的一个地图基本浏览和属性查询的例子!-c# developed a map of the basic browser and attribute query examples!
- 2023-06-05 17:00:04下载
- 积分:1
-
jtd
实现交通灯南北东西方向红灯、绿灯和黄灯的交替变化。(Traffic lights
)
- 2011-06-17 21:29:04下载
- 积分:1
-
STM32F407示波器
STM32F407示波器的设计,程序仅供参考(STM32F407 oscilloscope)
- 2020-06-22 19:20:01下载
- 积分:1
-
CH11-KEA128-SPI
说明: 1. 硬件接线
(1)调试串口(UART_Debug)使用UART2,在“printf.h”文件中宏定义, 对应引脚为TX-PTD7,RX-PTD6
(在“uart.h文件中宏定义)。
(2)灯0~3(LIGHT_0~LIGHT_3)对应的引脚是PTC0~PTC3,高电平点亮(由硬件接法决定)
(3)SPI0_CLK对应的引脚是PTE0, SPI0_MOSI对应的引脚是PTE1,
SPI0_MISO对应的引脚是PTE2,SPI0_PCS对应的引脚是PTE3,
SPI1_CLK对应的引脚是PTG4, SPI1_MOSI对应的引脚是PTG5,
SPI1_MISO对应的引脚是PTG6,SPI1_PCS对应的引脚是PTG7。
(4)SPI0作为master,SPI1作为slave,SPI1接收SPI0发送的数据并产生中断。
用导线将PTE0与PTG4对接,将PTE1与PTG5对接,将PTE2与PTG6对接,将PTE3与PTG7对接。(1. Hardware wiring
(1) Debugging Serial Port (UART_Debug) uses UART2, macro-defined in "printf.h" file, corresponding pins are TX-PTD7, RX-PTD6.
(macro definition in the uart.h file).
(2) The pins corresponding to the lamp 0~3 (LIGHT_0~LIGHT_3) are PTC0~PTC3, and the high-level lighting is determined by the hardware connection.
(3) The pin corresponding to SPI0_CLK is PTE0, and the pin corresponding to SPI0_MOSI is PTE1.
The pin corresponding to SPI0_MISO is PTE2, and the pin corresponding to SPI0_PCS is PTE3.
The pin corresponding to SPI1_CLK is PTG4, and the pin corresponding to SPI1_MOSI is PTG5.
The pin corresponding to SPI1_MISO is PTG6, and the pin corresponding to SPI1_PCS is PTG7.
(4) SPI0 acts as master and SPI1 acts as slave. SPI1 receives data sent by SPI0 and generates interruption.
PTE0 and PTG4 are docked by wire, PTE1 and PTG5 are docked, PTE2 and PTG6 are docked, PTE3 and PTG7 are docked.)
- 2020-06-16 12:00:01下载
- 积分:1
-
310V-FOC-DEMO
说明: 310V-foc无感无刷直流电机之电调设计源代码。(The source code of the electric regulation design of the sensorless BLDCM)
- 2021-04-27 13:18:44下载
- 积分:1