aconno acd52832 EPD example. With partial refresh.

Dependencies:   GDEP015OC1 mbed

Committer:
jurica238814
Date:
Mon Mar 13 11:37:18 2017 +0000
Revision:
0:4860cf6aa686
Test example with two images.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jurica238814 0:4860cf6aa686 1 /* Copyright (c) 2016 Aconno. All Rights Reserved.
jurica238814 0:4860cf6aa686 2 *
jurica238814 0:4860cf6aa686 3 * Licensees are granted free, non-transferable use of the information. NO
jurica238814 0:4860cf6aa686 4 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
jurica238814 0:4860cf6aa686 5 * the file.
jurica238814 0:4860cf6aa686 6 *
jurica238814 0:4860cf6aa686 7 */
jurica238814 0:4860cf6aa686 8
jurica238814 0:4860cf6aa686 9 #include "mbed.h"
jurica238814 0:4860cf6aa686 10 #include "GDEP015OC1.h"
jurica238814 0:4860cf6aa686 11 #include "pictures.h"
jurica238814 0:4860cf6aa686 12
jurica238814 0:4860cf6aa686 13 SPI spi(p3, NC, p4);
jurica238814 0:4860cf6aa686 14 GDEP015OC1 epd = GDEP015OC1(spi, p5, p6, p7, p8);
jurica238814 0:4860cf6aa686 15
jurica238814 0:4860cf6aa686 16 int main(){
jurica238814 0:4860cf6aa686 17 epd.empty();
jurica238814 0:4860cf6aa686 18 epd.writeFull();
jurica238814 0:4860cf6aa686 19 while(true){
jurica238814 0:4860cf6aa686 20 for(uint16_t x=0;x<5000;x++)
jurica238814 0:4860cf6aa686 21 epd.fill(ir0[x], x);
jurica238814 0:4860cf6aa686 22 epd.write();
jurica238814 0:4860cf6aa686 23 wait_ms(500);
jurica238814 0:4860cf6aa686 24 for(uint16_t x=0;x<5000;x++)
jurica238814 0:4860cf6aa686 25 epd.fill(ir1[x], x);
jurica238814 0:4860cf6aa686 26 epd.write();
jurica238814 0:4860cf6aa686 27 wait_ms(500);
jurica238814 0:4860cf6aa686 28 }
jurica238814 0:4860cf6aa686 29 }