Microchip® Advanced Software Framework

EPD_demo.h File Reference

Example for demonstrating Pervasive Displays Inc.

1.44", 2" or 2.7" EPD

Copyright (c) 2012-2014 Pervasive Displays Inc. All rights reserved.

#include <asf.h>
#include <Pervasive_Displays_small_EPD.h>
#include "image_data.h"

Functions

int main (void)
 Support and FAQ: visit Microchip Support More...
 

int main ( void  )

Support and FAQ: visit Microchip Support

Demonstration for showing the images alternatively on EPD of EPD Xplained Pro extension board

Content
  1. Include the ASF header files (through asf.h)
  2. Include Pervasive_Displays_small_EPD.h: EPD definitions
  3. Include image_data.h: image data array The main function will toggle between two images on corresponding EPD depends on specified EPD size
Note
EPD size: EPD_144 = 1.44 inch, EPD_200 = 2 inch, EPD_270 = 2.7 inch

Initialize system clock and Xplained pro board

Initialize EPD hardware

User selects which EPD size to run demonstration by changing the USE_EPD_Type in Atmel Studio Project properties under Symbols The Image data arrays for each EPD size are defined at image_data.c

References board_init(), cpu_irq_enable, delay_ms, EPD_144, EPD_200, EPD_270, EPD_display_from_pointer(), EPD_display_init(), image_array_144_1, image_array_144_2, irq_initialize_vectors, and sysclk_init().