diff options
Diffstat (limited to 'components/axs15231b/include')
| -rw-r--r-- | components/axs15231b/include/axs15231b.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/components/axs15231b/include/axs15231b.h b/components/axs15231b/include/axs15231b.h new file mode 100644 index 0000000..5ec017c --- /dev/null +++ b/components/axs15231b/include/axs15231b.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | #ifndef AXS15231B_H | ||
| 2 | #define AXS15231B_H | ||
| 3 | |||
| 4 | #include "esp_err.h" | ||
| 5 | #include <stdint.h> | ||
| 6 | #include <stdbool.h> | ||
| 7 | |||
| 8 | #define AXS15231B_WIDTH 480 | ||
| 9 | #define AXS15231B_HEIGHT 320 | ||
| 10 | |||
| 11 | #define AXS15231B_PIN_CS 45 | ||
| 12 | #define AXS15231B_PIN_CLK 47 | ||
| 13 | #define AXS15231B_PIN_D0 21 | ||
| 14 | #define AXS15231B_PIN_D1 48 | ||
| 15 | #define AXS15231B_PIN_D2 40 | ||
| 16 | #define AXS15231B_PIN_D3 39 | ||
| 17 | #define AXS15231B_PIN_BL 1 | ||
| 18 | |||
| 19 | esp_err_t axs15231b_init(void); | ||
| 20 | void axs15231b_set_backlight(bool on); | ||
| 21 | void axs15231b_fill_screen(uint16_t color); | ||
| 22 | void axs15231b_fill_rect(int x, int y, int w, int h, uint16_t color); | ||
| 23 | void axs15231b_flush(void); | ||
| 24 | int axs15231b_get_width(void); | ||
| 25 | int axs15231b_get_height(void); | ||
| 26 | |||
| 27 | #endif | ||