main.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <linux/input.h>
#include <pthread.h>
#include <unistd.h>
#include"lcd.h"
#include"touch.h"
#include <time.h>
int n,m;
int times = 15; //倒计时
int num = 0; //得分
int main(void)
{
lcd_int(); //打开屏幕映射
show_bmp("./1.bmp",0,0); //显示游戏开始界面
int a,b;
struct input_event ev;
while(1)
{
input_event( &a , &b ); //触摸屏幕,点击开始游戏,排行榜,游戏说明
if(300 < a && a < 500 && 290 < b && b < 420)
{
show_bmp("./2.bmp",0