waveshare_epaper

Waveshare e-paper display shenanigans
git clone git://bsandro.tech/waveshare_epaper
Log | Files | Refs | README

EPD_2in13.h (2591B)


      1 /*****************************************************************************
      2 * | File      	:   EPD_2IN13.h
      3 * | Author      :   Waveshare team
      4 * | Function    :   2.13inch e-paper
      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 *    EPD_Reset() => EPD_2IN13_Reset()
     14 *    EPD_SendCommand() => EPD_2IN13_SendCommand()
     15 *    EPD_SendData() => EPD_2IN13_SendData()
     16 *    EPD_WaitUntilIdle() => EPD_2IN13_ReadBusy()
     17 *    EPD_Init() => EPD_2IN13_Init()
     18 *    EPD_Clear() => EPD_2IN13_Clear()
     19 *    EPD_Display() => EPD_2IN13_Display()
     20 *    EPD_Sleep() => EPD_2IN13_Sleep()
     21 * -----------------------------------------------------------------------------
     22 * V2.0(2019-01-03):
     23 * 1.Remove:ImageBuff[EPD_2IN13_HEIGHT * EPD_2IN13_WIDTH / 8]
     24 * 2.Change:EPD_Display(UBYTE *Image)
     25 *   Need to pass parameters: pointer to cached data
     26 * 3.Change:
     27 *   EPD_RST -> EPD_RST_PIN
     28 *   EPD_DC -> EPD_DC_PIN
     29 *   EPD_CS -> EPD_CS_PIN
     30 *   EPD_BUSY -> EPD_BUSY_PIN
     31 #
     32 # Permission is hereby granted, free of charge, to any person obtaining a copy
     33 # of this software and associated documnetation files (the "Software"), to deal
     34 # in the Software without restriction, including without limitation the rights
     35 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     36 # copies of the Software, and to permit persons to  whom the Software is
     37 # furished to do so, subject to the following conditions:
     38 #
     39 # The above copyright notice and this permission notice shall be included in
     40 # all copies or substantial portions of the Software.
     41 #
     42 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     43 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     44 # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     45 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     46 # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     47 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     48 # THE SOFTWARE.
     49 #
     50 ******************************************************************************/
     51 #ifndef _EPD2IN13_H
     52 #define _EPD2IN13_H
     53 
     54 #include "DEV_Config.h"
     55 
     56 // Display resolution
     57 #define EPD_2IN13_WIDTH       122
     58 #define EPD_2IN13_HEIGHT      250
     59 
     60 #define EPD_2IN13_FULL			0
     61 #define EPD_2IN13_PART			1
     62 
     63 void EPD_2IN13_Init(UBYTE Mode);
     64 void EPD_2IN13_Clear(void);
     65 void EPD_2IN13_Display(UBYTE *Image);
     66 void EPD_2IN13_Sleep(void);
     67 
     68 #endif