aconno acd52832 EPD example. With partial refresh.

Dependencies:   GDEP015OC1 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 /* Copyright (c) 2016 Aconno. All Rights Reserved.
00002  *
00003  * Licensees are granted free, non-transferable use of the information. NO
00004  * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
00005  * the file.
00006  *
00007  */
00008 
00009 #include "mbed.h"
00010 #include "GDEP015OC1.h"
00011 #include "pictures.h"
00012 
00013 SPI spi(p3, NC, p4);
00014 GDEP015OC1 epd = GDEP015OC1(spi, p5, p6, p7, p8);
00015 
00016 int main(){
00017     epd.empty();
00018     epd.writeFull();
00019     while(true){
00020         for(uint16_t x=0;x<5000;x++)
00021             epd.fill(ir0[x], x);
00022         epd.write();
00023         wait_ms(500);
00024         for(uint16_t x=0;x<5000;x++)
00025             epd.fill(ir1[x], x);
00026         epd.write();
00027         wait_ms(500);
00028     }
00029 }