jlxaiyjx

导航

2023年7月19日 #

STM32中包含的c语言基础知识(2023/7/19)

摘要: 关键字为c语言中的应用,表示的范围根据使用的范围不同,也发生了相应的变化,比如char本来是用来表示字符的,现在也可以用来表述数字;int在c中是16位的,在32中表示32位,long和int的长度相同,longlong基本不使用。 stdint关键字的库文件给我们提供的,ST文件是以前的库文件用的 阅读全文

posted @ 2023-07-19 21:10 蒋果是果 阅读(55) 评论(0) 推荐(0) 编辑

STM32蜂鸣器(2023/7/19)

摘要: 1.接线图(蜂鸣器低电平发声,高电平不发声) 2.程序编写 #include "stm32f10x.h" // Device header#include "Delay.h"int main(void){ RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENA 阅读全文

posted @ 2023-07-19 13:15 蒋果是果 阅读(70) 评论(0) 推荐(0) 编辑

STM32流水灯(2023/7/19)

摘要: 1.接线图 2.程序编写 #include "stm32f10x.h" // Device header#include "Delay.h"int main(void){ RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC,ENABLE); GPIO_InitTy 阅读全文

posted @ 2023-07-19 13:04 蒋果是果 阅读(44) 评论(0) 推荐(0) 编辑

STM32闪烁灯(2023/7/19)

摘要: 1.添加Delay库文件,新建文件夹,增加Delay的.c和.h文件 2.编写代码 #include "stm32f10x.h" // Device header#include "Delay.h"int main(void){ RCC_APB2PeriphClockCmd(RCC_APB2Peri 阅读全文

posted @ 2023-07-19 12:44 蒋果是果 阅读(35) 评论(0) 推荐(0) 编辑