Description: /*** *** *** *** *** *** *** *** *** *** *** *** *** *
* File Name : KeyScan
* Description : Serial print out the corresponding key value
*******************************************************************************/
#include"stm32f10x.h"
#include"KeyScan.h"
#include"SysTick.h"
#include"USART.h"
/*******************************************************************************
* Function Name : main
* Description : Main program.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
int main(void)
{
SysTick_Init() //延时初始化
USART_GPIO_Config() //串口初始化
USART_Config()
Keyboard_Interrupt_Init() //矩阵键盘初始化
while(1)
{
printf("\nBelieve yourself\n")
delay_ms(1500)
if(Keyboard_Val)
{
switch(Keyboard_Val)
{
case 1:printf("\n1\n") Keyboard_Val=0 break
case 2:printf("\n2\n") Keyboar
To Search:
File list (Check if you may need any files):
ADC.C