【STM32学习笔记】STM32F103RCT6_GPIO_跑马灯输出
GPIO用作输出编写跑马灯程序
main.c
#include "stm32f10x.h"
#include "led.h"
#include "delay.h"
int main(void)
{
LED_Init();
delay_init();
while(1)
{
LED_Show1();
LED_Show2();
LED_Show3();
}
}
led.h
#ifndef __LED_H__
#define __LED_H__
void LED_Init(void);
v
原创
2021-04-20 16:14:55 ·
1114 阅读 ·
0 评论