upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/components/axs15231b/include
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-18 16:12:13 +0530
committerYour Name <you@example.com>2026-05-18 16:12:13 +0530
commit52f852f5b987750537b71e2a5f2363a48783a985 (patch)
treee43006899d241e0c2221dca924ba2bedb1aae2bb /components/axs15231b/include
parent36fa7451a3be1c49932e944859364fe4e9f9fcc4 (diff)
track: add AXS15231B display driver and QR code components
Components were untracked on master. Adding to feature/display-fix branch so they are version-controlled before making QSPI fixes.
Diffstat (limited to 'components/axs15231b/include')
-rw-r--r--components/axs15231b/include/axs15231b.h27
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
19esp_err_t axs15231b_init(void);
20void axs15231b_set_backlight(bool on);
21void axs15231b_fill_screen(uint16_t color);
22void axs15231b_fill_rect(int x, int y, int w, int h, uint16_t color);
23void axs15231b_flush(void);
24int axs15231b_get_width(void);
25int axs15231b_get_height(void);
26
27#endif