static_assert((_width) % 8U == 0U && (_height) <= 255U, "panel size"); \
static_assert((_rotation) == 0 || (_rotation) == 180, "rotation of 0 or 180 degrees"); \
PBL_DISPLAY_STATE_DEFINE(sym); \
static struct pbl_display_sharp_memory_state sym##_sharp_state; \
static uint8_t sym##_sharp_buf[SHARP_MEMORY_BUF_SIZE(_width, _height)]; \
.disp =
PBL_DISPLAY_INIT(sym, _name,
nullptr, &pbl_display_sharp_memory_ops, (_width), \
.state = &sym##_sharp_state, .buf = sym##_sharp_buf, \
.spi =
PBL_SPI_DEV(_bus, _cs, _max_hz, _mode), .enable = _enable, .extcomin = __VA_ARGS__, \
}
Sharp memory LCD.
Definition sharp_memory.h:46
A display.
Definition display.h:134
#define PBL_DISPLAY_INIT(sym, _name, _parent, _ops, _width, _height, _format, _rotated,...)
Initializer for the struct pbl_display of display sym.
Definition display.h:236
@ PBL_DISPLAY_FORMAT_MONO
1 bit per pixel, leftmost pixel in the least significant bit, set for white.
Definition display.h:50
#define PBL_SPI_DEV(_bus, _cs, _max_hz, _mode)
Initializer for a struct pbl_spi_dev.
Definition spi.h:173
Define a Sharp memory LCD.