EPD_2in13d.h (3058B)
1 /***************************************************************************** 2 * | File : EPD_2in13d.h 3 * | Author : Waveshare team 4 * | Function : 2.13inch e-paper d 5 * | Info : 6 *---------------- 7 * | This version: V3.0 8 * | Date : 2019-06-12 9 * | Info : 10 * ----------------------------------------------------------------------------- 11 * V3.0(2019-06-12): 12 * 1.Change: 13 * lut_vcomDC[] => EPD_2IN13D_lut_vcomDC[] 14 * lut_ww[] => EPD_2IN13D_lut_ww[] 15 * lut_bw[] => EPD_2IN13D_lut_bw[] 16 * lut_wb[] => EPD_2IN13D_lut_wb[] 17 * lut_bb[] => EPD_2IN13D_lut_bb[] 18 * lut_vcom1[] => EPD_2IN13D_lut_vcom1[] 19 * lut_ww1[] => EPD_2IN13D_lut_ww1[] 20 * lut_bw1[] => EPD_2IN13D_lut_bw1[] 21 * lut_wb1[] => EPD_2IN13D_lut_wb1[] 22 * lut_bb1[] => EPD_2IN13D_lut_bb1[] 23 * EPD_Reset() => EPD_2IN13D_Reset() 24 * EPD_SendCommand() => EPD_2IN13D_SendCommand() 25 * EPD_SendData() => EPD_2IN13D_SendData() 26 * EPD_WaitUntilIdle() => EPD_2IN13D_ReadBusy() 27 * EPD_SetFullReg() => EPD_2IN13D_SetFullReg() 28 * EPD_SetPartReg() => EPD_2IN13D_SetPartReg() 29 * EPD_TurnOnDisplay() => EPD_2IN13D_TurnOnDisplay() 30 * EPD_Init() => EPD_2IN13D_Init() 31 * EPD_Clear() => EPD_2IN13D_Clear() 32 * EPD_Display() => EPD_2IN13D_Display() 33 * EPD_Sleep() => EPD_2IN13D_Sleep() 34 * V2.0(2018-11-13): 35 * 1.Remove:ImageBuff[EPD_2IN13D_HEIGHT * EPD_2IN13D_WIDTH / 8] 36 * 2.Change:EPD_Display(UBYTE *Image) 37 * Need to pass parameters: pointer to cached data 38 * 3.Change: 39 * EPD_RST -> EPD_RST_PIN 40 * EPD_DC -> EPD_DC_PIN 41 * EPD_CS -> EPD_CS_PIN 42 * EPD_BUSY -> EPD_BUSY_PIN 43 # 44 # Permission is hereby granted, free of charge, to any person obtaining a copy 45 # of this software and associated documnetation files (the "Software"), to deal 46 # in the Software without restriction, including without limitation the rights 47 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 48 # copies of the Software, and to permit persons to whom the Software is 49 # furished to do so, subject to the following conditions: 50 # 51 # The above copyright notice and this permission notice shall be included in 52 # all copies or substantial portions of the Software. 53 # 54 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 55 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 56 # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 57 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 58 # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 59 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 60 # THE SOFTWARE. 61 # 62 ******************************************************************************/ 63 #ifndef __EPD_2IN13D_H_ 64 #define __EPD_2IN13D_H_ 65 66 #include "DEV_Config.h" 67 68 // Display resolution 69 #define EPD_2IN13D_WIDTH 104 70 #define EPD_2IN13D_HEIGHT 212 71 72 void EPD_2IN13D_Init(void); 73 void EPD_2IN13D_Clear(void); 74 void EPD_2IN13D_Display(UBYTE *Image); 75 void EPD_2IN13D_DisplayPart(UBYTE *Image); 76 void EPD_2IN13D_Sleep(void); 77 78 #endif