Thí nghiệm nhấp nháy LED trên STM32 sử dụng GPIO
1. Chuẩn bị phần cứng:
1 bo mạch STM32F103C8T6 tối thiểu
1 bộ ghi ST-LINK V2
Tuỳ chọn dây nối DuPont
LED tích hợp - chân GPIOC13
2. Hàm delay (Delay.h)
Xem mã nguồn
#ifndef _DELAY_H_
#define _DELAY_H_
#include "stm32f10x.h" // Device header
void delayMicroseconds(uint32_t us);
void delayMilliseconds(uint32_t ms);
void de ...
Đăng vào ngày 19 tháng 7 lúc 10:56