gc9a01.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. //--------------------------------------------------------------------------------------------------------
  2. // Nadyrshin Ruslan - [YouTube-channel: https://www.youtube.com/channel/UChButpZaL5kUUl_zTyIDFkQ]
  3. // Liyanboy74
  4. //--------------------------------------------------------------------------------------------------------
  5. #ifndef _GC9A01_H
  6. #define _GC9A01_H
  7. #define GC9A01_Width CONFIG_GC9A01_Width
  8. #define GC9A01_Height CONFIG_GC9A01_Height
  9. uint16_t GC9A01_GetWidth();
  10. uint16_t GC9A01_GetHeight();
  11. void GC9A01_Init();
  12. #if (CONFIG_GC9A01_BUFFER_MODE_PSRAM)
  13. /**
  14. * Frees the PSRAM allocated buffer
  15. */
  16. void GC9A01_Free(void);
  17. #endif
  18. void GC9A01_SleepMode(uint8_t Mode);
  19. void GC9A01_DisplayPower(uint8_t On);
  20. void GC9A01_DrawPixel(int16_t x, int16_t y, uint16_t color);
  21. void GC9A01_FillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
  22. void GC9A01_Update();
  23. void GC9A01_SetBL(uint8_t Value);
  24. uint16_t GC9A01_GetPixel(int16_t x, int16_t y);
  25. void GC9A01_Screen_Shot(uint16_t x,uint16_t y,uint16_t width ,uint16_t height,uint16_t * Buffer);
  26. void GC9A01_Screen_Load(uint16_t x,uint16_t y,uint16_t width ,uint16_t height,uint16_t * Buffer);
  27. #endif