You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include "LPC8xx.h"
|
|
|
|
#include "syscon.h"
|
|
|
|
#include "swm.h"
|
|
|
|
#include "spi.h"
|
|
|
|
#include "uart.h"
|
|
|
|
#include "utilities.h"
|
|
|
|
#include "chip_setup.h"
|
|
|
|
#include "lib_ENS_II1_lcd.h"
|
|
|
|
#include "lib_epaper_2in9.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// Main routine
|
|
|
|
//
|
|
|
|
int main(void) {
|
|
|
|
|
|
|
|
// Init e-paper
|
|
|
|
epaper_init();
|
|
|
|
|
|
|
|
// Init LCD Screen
|
|
|
|
init_lcd();
|
|
|
|
lcd_puts("Test e-paper");
|
|
|
|
lcd_position(1, 0);
|
|
|
|
lcd_puts("Initialisation ok");
|
|
|
|
|
|
|
|
while(1) {
|
|
|
|
for(int i = 100000; i>0; i--);
|
|
|
|
epaper_clearframe(0xFF);
|
|
|
|
for(int i = 100000; i>0; i--);
|
|
|
|
epaper_clearframe(0x88);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end of main
|
|
|
|
|