IC解密S5P6818芯片智能家居程序
IC解密#include <stdio.h>//fopen
IC解密#include <errno.h>//perror
IC解密#include <stdlib.h>//exit
#include <sys/types.h>//open
#include <sys/stat.h>//open
#include <fcntl.h>//open
#include <sys/mman.h>//mmap
#include <linux/input.h>//struct input event
#include <stdlib.h>
#include <strings.h>
int fd_event0 = 0;
char video_path[100]="/root/smart_home/video_file/1.avi";
char audio_path[100]="/root/smart_home/audio_file/1.mp3";
int flag=0;
int open_touch_screen(void);
int close_touch_screen(void);
int read_touch_screen_information(int *x, int *y);
int S5P6818_bmp_24_800_480(const char *path);
int picture_system(void);
int main_system(void);
int pic_circular_spread_right(char *pathname);
int video_system(void);
int audio_system(void);
int play(char *mp3path, int select);
int stop(int select);
int cont(int select);
int quit(int select);
int next(int select);
int last(int select);
int back(void);
int main(int argc, char *argv[])
{
main_system();
return 0;
}
int main_system(void)
{
int get_x=0, get_y=0;
char bmp_path[100]="/root/smart_home/images/jiemian.bmp";
S5P6818_bmp_24_800_480(bmp_path);
open_touch_screen();
while(1)
{
read_touch_screen_information(&get_x, &get_y);
printf("(x,y):(%d,%d)\n", get_x, get_y);
if(get_x>=640&&get_x<=760&&get_y>=35&&get_y<=130){
picture_system();
}
else if(get_x>=640&&get_x<=760&&get_y>=195&&get_y<=295){
video_system();
}
else if(get_x>=640&&get_x<=760&&get_y>=300&&get_y<=455)
{
audio_system();
}
else{
printf("============\n");
}
}
close_touch_screen();
}

芯片解密