EPD_2in9d.h (2736B)
1 /***************************************************************************** 2 * | File : EPD_2in9d.c 3 * | Author : Waveshare team 4 * | Function : 2.9inch e-paper d 5 * | Info : 6 *---------------- 7 * | This version: V2.0 8 * | Date : 2019-06-12 9 * | Info : 10 * ----------------------------------------------------------------------------- 11 * V3.0(2019-06-12): 12 * 1.Change: 13 * lut_vcomDC[] => EPD_2IN9D_lut_vcomDC[] 14 * lut_ww[] => EPD_2IN9D_lut_ww[] 15 * lut_bw[] => EPD_2IN9D_lut_bw[] 16 * lut_wb[] => EPD_2IN9D_lut_wb[] 17 * lut_bb[] => EPD_2IN9D_lut_bb[] 18 * lut_vcom1[] => EPD_2IN9D_lut_vcom1[] 19 * lut_ww1[] => EPD_2IN9D_lut_ww1[] 20 * lut_bw1[] => EPD_2IN9D_lut_bw1[] 21 * lut_wb1[] => EPD_2IN9D_lut_wb1[] 22 * lut_bb1[] => EPD_2IN9D_lut_bb1[] 23 * EPD_Reset() => EPD_2IN9D_Reset() 24 * EPD_SendCommand() => EPD_2IN9D_SendCommand() 25 * EPD_SendData() => EPD_2IN9D_SendData() 26 * EPD_WaitUntilIdle() => EPD_2IN9D_ReadBusy() 27 * EPD_SetFullReg() => EPD_2IN9D_SetFullReg() 28 * EPD_SetPartReg() => EPD_2IN9D_SetPartReg() 29 * EPD_TurnOnDisplay() => EPD_2IN9D_TurnOnDisplay() 30 * EPD_Init() => EPD_2IN9D_Init() 31 * EPD_Clear() => EPD_2IN9D_Clear() 32 * EPD_Display() => EPD_2IN9D_Display() 33 * EPD_Sleep() => EPD_2IN9D_Sleep() 34 * 35 # Permission is hereby granted, free of charge, to any person obtaining a copy 36 # of this software and associated documnetation files (the "Software"), to deal 37 # in the Software without restriction, including without limitation the rights 38 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 39 # copies of the Software, and to permit persons to whom the Software is 40 # furished to do so, subject to the following conditions: 41 # 42 # The above copyright notice and this permission notice shall be included in 43 # all copies or substantial portions of the Software. 44 # 45 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 46 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 47 # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 48 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 49 # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 50 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 51 # THE SOFTWARE. 52 # 53 ******************************************************************************/ 54 #ifndef __EPD_2IN9D_H_ 55 #define __EPD_2IN9D_H_ 56 57 #include "DEV_Config.h" 58 59 // Display resolution 60 #define EPD_2IN9D_WIDTH 128 61 #define EPD_2IN9D_HEIGHT 296 62 63 void EPD_2IN9D_Init(void); 64 void EPD_2IN9D_Clear(void); 65 void EPD_2IN9D_Display(UBYTE *Image); 66 void EPD_2IN9D_DisplayPart(UBYTE *Image); 67 void EPD_2IN9D_Sleep(void); 68 69 #endif