- 博客(5)
- 收藏
- 关注
原创 基于stm32f407开发板的推箱子小游戏
推箱子游戏利用数组就可以实现,在vs里使用特殊符号来代表墙、箱子、小人等物体,但是在stm32上面好像无法输出这些特殊符号(也有可能是我不会),所以就使用不同颜色来代替。包含头文件和一些宏定义如下:#include "stdio.h"#include "stdbool.h"#include "stdlib.h"#include "sys.h"#include "delay.h"#include "usart.h"#include "led.h"#include "lcd.h"#incl
2022-05-29 16:30:55
2646
11
原创 单片机学习练习--使用定时器输出PWM波
任务要求:使用定时器输出两路不同占空比的PWM波形。#include <stdint.h>#include <stdbool.h>#include "inc/tm4c123gh6pm.h"#include "inc/hw_memmap.h"#include "inc/hw_types.h"#include "driverlib/pin_map.h"#include "driverlib/sysctl.h"#include "driverlib/interrupt.
2022-04-29 15:29:41
1199
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人