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.
42 lines
692 B
42 lines
692 B
#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("Init ok "); |
|
|
|
int j = 0; |
|
|
|
while(1) { |
|
for(int i = 100000; i>0; i--); |
|
epaper_clearframe(0xFF); |
|
epaper_display(); |
|
for(int i = 100000; i>0; i--); |
|
epaper_clearframe(0x88); |
|
epaper_display(); |
|
|
|
lcd_position(1, 0); |
|
lcd_puts(" "); |
|
lcd_position(1, 0); |
|
lcd_putc((j++ % 26) + 'A'); |
|
}; |
|
|
|
} // end of main |
|
|
|
|