这里面主要就是用了一个main.c函数,至于其他的头文件就先算了
#include "bsp.h"
//unsigned char time[20] = {0};
unsigned char code number[10] = {0X30, 0X31, 0X32, 0X33, 0X34, 0X35, 0X36,
0X37, 0X38, 0X39
};
unsigned char* right = "You are right!";
unsigned char* wrong = " Wrong! ";
unsigned char* reset = " ";
unsigned char* code_change = "Change your code!";
unsigned char* sbit_change = "change success!";
unsigned char* shuru = "Input your code";
//unsigned char* hllo = " hello!world ";
unsigned char lcd_code[8] = {1, 9, 9, 7, 0, 6, 1, 3};
unsigned char lcd_i = 0;
unsigned char lcd_out[8] = {0};
unsigned char change_code = 0;
//void change_mima(void);
void delay_s(void);
void main()
{
init_bsp();
while(1)
{
mkey_scan();
mkey_port();
if ((Mkeyvalue < 16)&&(Mkeyvalue >= 0))
{