EPD_2in13_V2.h (2806B)
1 /***************************************************************************** 2 * | File : EPD_2in13_V2.h 3 * | Author : Waveshare team 4 * | Function : 2.13inch e-paper V2 5 * | Info : 6 *---------------- 7 * | This version: V3.0 8 * | Date : 2019-06-13 9 * | Info : 10 * ----------------------------------------------------------------------------- 11 * V3.0(2019-06-13): 12 * 1.Change name: 13 * EPD_Reset() => EPD_2IN13_V2_Reset() 14 * EPD_SendCommand() => EPD_2IN13_V2_SendCommand() 15 * EPD_SendData() => EPD_2IN13_V2_SendData() 16 * EPD_WaitUntilIdle() => EPD_2IN13_V2_ReadBusy() 17 * EPD_Init() => EPD_2IN13_V2_Init() 18 * EPD_Clear() => EPD_2IN13_V2_Clear() 19 * EPD_Display() => EPD_2IN13_V2_Display() 20 * EPD_Sleep() => EPD_2IN13_V2_Sleep() 21 * 2.add: 22 * EPD_2IN13_V2_DisplayPartBaseImage() 23 * ----------------------------------------------------------------------------- 24 * V2.0(2018-11-14): 25 * 1.Remove:ImageBuff[EPD_HEIGHT * EPD_WIDTH / 8] 26 * 2.Change:EPD_2IN13_V2_Display(UBYTE *Image) 27 * Need to pass parameters: pointer to cached data 28 * 3.Change: 29 * EPD_RST -> EPD_RST_PIN 30 * EPD_DC -> EPD_DC_PIN 31 * EPD_CS -> EPD_CS_PIN 32 * EPD_BUSY -> EPD_BUSY_PIN 33 # 34 # Permission is hereby granted, free of charge, to any person obtaining a copy 35 # of this software and associated documnetation files (the "Software"), to deal 36 # in the Software without restriction, including without limitation the rights 37 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 38 # copies of the Software, and to permit persons to whom the Software is 39 # furished to do so, subject to the following conditions: 40 # 41 # The above copyright notice and this permission notice shall be included in 42 # all copies or substantial portions of the Software. 43 # 44 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 45 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 46 # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 47 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 48 # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 49 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 50 # THE SOFTWARE. 51 # 52 ******************************************************************************/ 53 #ifndef _EPD_2IN13_V2_H_ 54 #define _EPD_2IN13_V2_H_ 55 56 #include "DEV_Config.h" 57 58 // Display resolution 59 #define EPD_2IN13_V2_WIDTH 122 60 #define EPD_2IN13_V2_HEIGHT 250 61 62 #define EPD_2IN13_V2_FULL 0 63 #define EPD_2IN13_V2_PART 1 64 65 void EPD_2IN13_V2_Init(UBYTE Mode); 66 void EPD_2IN13_V2_Clear(void); 67 void EPD_2IN13_V2_Display(UBYTE *Image); 68 void EPD_2IN13_V2_DisplayPart(UBYTE *Image); 69 void EPD_2IN13_V2_DisplayPartBaseImage(UBYTE *Image); 70 void EPD_2IN13_V2_Sleep(void); 71 72 #endif