芯片解密|单片机解密|IC解密|芯片破解|芯片复制| PCB抄板|软件开发

飞芯科技-芯片解密|单片机解密|IC解密|芯片破解|芯片复制| PCB抄板|软件开发

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();
}


联系方式

地址:石家庄市新华区民族路77号华强广场D座2009
电话:0311-88816616/87087811
手机:13315190088
传真:0311-67901001
联系人:张工
网址:www.feixindz.com
邮箱:feixindz@163.com
微信:xinpianjiemi
QQ:527263666/568069805

在线客服
热线电话

企业微信