1 // Copyright 2013 Pervasive Displays, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at: 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, 10 // software distributed under the License is distributed on an 11 // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 // express or implied. See the License for the specific language 13 // governing permissions and limitations under the License. 14 15 /****************************************************************************** 16 * Includes 17 *****************************************************************************/ 18 //#include "driver_config.h" 19 //#include "type.h" 20 //#include "gpio.h" 21 #include "Display_Controller.h" 22 23 /****************************************************************************** 24 * Global Functions 25 *****************************************************************************/ 26 27 void epd_DisplayImg(EPDType_t EPDType, uint8_t *pNewImg, uint8_t *pPrevImg) 28 { 29 //always initialize display (has been powered off before) 30 epd_HwInit(); 31 epd_PowerOn(); 32 epd_InitializeDriver(EPDType); 33 34 //display new picture, but first remove old one 35 epd_Display(pNewImg, pPrevImg); 36 37 //power down display - picture still displayed 38 epd_PowerOff(); 39 } 40