This commit is contained in:
2025-12-28 00:54:00 +01:00
parent 39f47a4862
commit 9ddabed000

View File

@@ -94,6 +94,7 @@ void LCDDisplay::setCursor(uint8_t row, uint8_t col) {
this->write(cmdbuf, sizeof(cmdbuf));
}
/* reconsider so im not writing every time. prepend custom chars to the write buffer? */
void LCDDisplay::setCustomChar(uint8_t index, std::array<uint8_t, 8> cchar) {
uint8_t cmdbuf[] = {254, 78, index, 0, 0, 0, 0, 0, 0, 0, 0};
std::memcpy(&cmdbuf[3], &cchar, sizeof(cchar));