EPD_7in5.h (4857B)
1 /***************************************************************************** 2 * | File : EPD_7IN5.h 3 * | Author : Waveshare team 4 * | Function : 7.5inch e-paper 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: 13 * EPD_Reset() => EPD_7IN5_Reset() 14 * EPD_SendCommand() => EPD_7IN5_SendCommand() 15 * EPD_SendData() => EPD_7IN5_SendData() 16 * EPD_WaitUntilIdle() => EPD_7IN5_ReadBusy() 17 * EPD_SetFullReg() => EPD_7IN5_SetFullReg() 18 * EPD_SetPartReg() => EPD_7IN5_SetPartReg() 19 * EPD_TurnOnDisplay() => EPD_7IN5_TurnOnDisplay() 20 * EPD_Init() => EPD_7IN5_Init() 21 * EPD_Clear() => EPD_7IN5_Clear() 22 * EPD_Display() => EPD_7IN5_Display() 23 * EPD_Sleep() => EPD_7IN5_Sleep() 24 * 2.remove commands define: 25 * #define PANEL_SETTING 0x00 26 * #define POWER_SETTING 0x01 27 * #define POWER_OFF 0x02 28 * #define POWER_OFF_SEQUENCE_SETTING 0x03 29 * #define POWER_ON 0x04 30 * #define POWER_ON_MEASURE 0x05 31 * #define BOOSTER_SOFT_START 0x06 32 * #define DEEP_SLEEP 0x07 33 * #define DATA_START_TRANSMISSION_1 0x10 34 * #define DATA_STOP 0x11 35 * #define DISPLAY_REFRESH 0x12 36 * #define DATA_START_TRANSMISSION_2 0x13 37 * #define VCOM_LUT 0x20 38 * #define W2W_LUT 0x21 39 * #define B2W_LUT 0x22 40 * #define W2B_LUT 0x23 41 * #define B2B_LUT 0x24 42 * #define PLL_CONTROL 0x30 43 * #define TEMPERATURE_SENSOR_CALIBRATION 0x40 44 * #define TEMPERATURE_SENSOR_SELECTION 0x41 45 * #define TEMPERATURE_SENSOR_WRITE 0x42 46 * #define TEMPERATURE_SENSOR_READ 0x43 47 * #define VCOM_AND_DATA_INTERVAL_SETTING 0x50 48 * #define LOW_POWER_DETECTION 0x51 49 * #define TCON_SETTING 0x60 50 * #define RESOLUTION_SETTING 0x61 51 * #define GET_STATUS 0x71 52 * #define AUTO_MEASURE_VCOM 0x80 53 * #define READ_VCOM_VALUE 0x81 54 * #define VCM_DC_SETTING 0x82 55 * #define PARTIAL_WINDOW 0x90 56 * #define PARTIAL_IN 0x91 57 * #define PARTIAL_OUT 0x92 58 * #define PROGRAM_MODE 0xA0 59 * #define ACTIVE_PROGRAM 0xA1 60 * #define READ_OTP_DATA 0xA2 61 * #define POWER_SAVING 0xE3 62 * ----------------------------------------------------------------------------- 63 * V2.0(2018-11-09): 64 * 1.Remove:ImageBuff[EPD_HEIGHT * EPD_WIDTH / 8] 65 * 2.Change:EPD_Display(UBYTE *Image) 66 * Need to pass parameters: pointer to cached data 67 # 68 # Permission is hereby granted, free of charge, to any person obtaining a copy 69 # of this software and associated documnetation files (the "Software"), to deal 70 # in the Software without restriction, including without limitation the rights 71 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 72 # copies of the Software, and to permit persons to whom the Software is 73 # furished to do so, subject to the following conditions: 74 # 75 # The above copyright notice and this permission notice shall be included in 76 # all copies or substantial portions of the Software. 77 # 78 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 79 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 80 # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 81 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 82 # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 83 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 84 # THE SOFTWARE. 85 # 86 ******************************************************************************/ 87 #ifndef __EPD_7IN5_H_ 88 #define __EPD_7IN5_H_ 89 90 #include "DEV_Config.h" 91 92 // Display resolution 93 #define EPD_7IN5_WIDTH 640 94 #define EPD_7IN5_HEIGHT 384 95 96 void EPD_7IN5_Init(void); 97 void EPD_7IN5_Clear(void); 98 void EPD_7IN5_Display(UBYTE *Image); 99 void EPD_7IN5_Sleep(void); 100 101 #endif