EPD_2in13d.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. #include "DEV_Config.h"
  66. // Display resolution
  67. #define EPD_2IN13D_WIDTH 104
  68. #define EPD_2IN13D_HEIGHT 212
  69. void EPD_2IN13D_Init(void);
  70. void EPD_2IN13D_Clear(void);
  71. void EPD_2IN13D_Display(UBYTE *Image);
  72. void EPD_2IN13D_DisplayPart(UBYTE *Image);
  73. void EPD_2IN13D_Sleep(void);
  74. #endif