gds_draw.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * (c) Philippe G. 2019, philippe_44@outlook.com
  3. *
  4. * This software is released under the MIT License.
  5. * https://opensource.org/licenses/MIT
  6. *
  7. */
  8. #ifndef _GDS_DRAW_H_
  9. #define _GDS_DRAW_H_
  10. #include <stdint.h>
  11. #include <stdbool.h>
  12. #include "esp_attr.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. void IRAM_ATTR GDS_DrawPixelFast( struct GDS_Device* Device, int X, int Y, int Color );
  17. void IRAM_ATTR GDS_DrawPixel( struct GDS_Device* Device, int X, int Y, int Color );
  18. void GDS_DrawHLine( struct GDS_Device* Device, int x, int y, int Width, int Color );
  19. void GDS_DrawVLine( struct GDS_Device* Device, int x, int y, int Height, int Color );
  20. void GDS_DrawLine( struct GDS_Device* Device, int x0, int y0, int x1, int y1, int Color );
  21. void GDS_DrawBox( struct GDS_Device* Device, int x1, int y1, int x2, int y2, int Color, bool Fill );
  22. // draw a bitmap with source 1-bit depth organized in column and col0 = bit7 of byte 0
  23. void GDS_DrawBitmapCBR( struct GDS_Device* Device, uint8_t *Data, int Width, int Height, int Color);
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif