EPD_3in52b.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*****************************************************************************
  2. * | File : EPD_3IN52B.h
  3. * | Author : Waveshare team
  4. * | Function : 3.52inch e-paper
  5. * | Info :
  6. *----------------
  7. * | This version: V1.0
  8. * | Date : 2024-09-27
  9. * | Info :
  10. * -----------------------------------------------------------------------------
  11. #
  12. # Permission is hereby granted, free of charge, to any person obtaining a copy
  13. # of this software and associated documnetation files (the "Software"), to deal
  14. # in the Software without restriction, including without limitation the rights
  15. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  16. # copies of the Software, and to permit persons to whom the Software is
  17. # furished to do so, subject to the following conditions:
  18. #
  19. # The above copyright notice and this permission notice shall be included in
  20. # all copies or substantial portions of the Software.
  21. #
  22. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  23. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  24. # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  25. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  26. # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  27. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  28. # THE SOFTWARE.
  29. #
  30. ******************************************************************************/
  31. #ifndef __EPD_3IN52B_H_
  32. #define __EPD_3IN52B_H_
  33. #include "DEV_Config.h"
  34. // Display resolution
  35. #define EPD_3IN52B_WIDTH 240
  36. #define EPD_3IN52B_HEIGHT 360
  37. #define LUTGC_TEST //
  38. #define LUTDU_TEST //
  39. #define EPD_3IN52B_WHITE 0xFF //
  40. #define EPD_3IN52B_BLACK 0x00 //
  41. #define EPD_3IN52B_Source_Line 0xAA //
  42. #define EPD_3IN52B_Gate_Line 0x55 //
  43. #define EPD_3IN52B_UP_BLACK_DOWN_WHITE 0xF0 //
  44. #define EPD_3IN52B_LEFT_BLACK_RIGHT_WHITE 0x0F //
  45. #define EPD_3IN52B_Frame 0x01 //
  46. #define EPD_3IN52B_Crosstalk 0x02 //
  47. #define EPD_3IN52B_Chessboard 0x03 //
  48. #define EPD_3IN52B_Image 0x04 //
  49. extern unsigned char EPD_3IN52B_Flag;
  50. void EPD_3IN52B_SendCommand(UBYTE Reg);
  51. void EPD_3IN52B_SendData(UBYTE Data);
  52. void EPD_3IN52B_Init(void);
  53. void EPD_3IN52B_Display(const UBYTE *blackimage, const UBYTE *ryimage);
  54. void EPD_3IN52B_Display_NUM(const UBYTE *image,UBYTE NUM);
  55. void EPD_3IN52B_Clear(void);
  56. void EPD_3IN52B_sleep(void);
  57. #endif