waveshare_epaper

Waveshare e-paper display shenanigans
git clone git://bsandro.tech/waveshare_epaper
Log | Files | Refs | README

main.c (370B)


      1 #include <stdlib.h>     //exit()
      2 #include <signal.h>     //signal()
      3 #include "EPD_Test.h"   //Examples
      4 #include "EPD_3in7.h"
      5 
      6 void Handler(int signo)
      7 {
      8     //System Exit
      9     printf("\r\nHandler:exit\r\n");
     10     DEV_Module_Exit();
     11 
     12     exit(0);
     13 }
     14 
     15 int main(void)
     16 {
     17     // Exception handling:ctrl + c
     18     signal(SIGINT, Handler);
     19     EPD_7in5_V2_test();
     20     return 0;
     21 }