mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Merge pull request #11917 from s-hadinger/udisplay-remove-byte-swap
uDisplay remove byte swap
This commit is contained in:
commit
e6603d9961
@ -1046,13 +1046,6 @@ void uDisplay::pushColors(uint16_t *data, uint16_t len, boolean not_inverted) {
|
|||||||
|
|
||||||
//Serial.printf("push %x - %d\n", (uint32_t)data, len);
|
//Serial.printf("push %x - %d\n", (uint32_t)data, len);
|
||||||
|
|
||||||
#ifdef ESP32
|
|
||||||
// reversed order for DMA, so non-DMA needs to get back to normal order
|
|
||||||
if (!not_inverted && !lvgl_param.use_dma) {
|
|
||||||
for (uint32_t i = 0; i < len; i++) (data[i] = data[i] << 8 | data[i] >> 8);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (bpp != 16) {
|
if (bpp != 16) {
|
||||||
// stupid monchrome version
|
// stupid monchrome version
|
||||||
for (uint32_t y = seta_yp1; y < seta_yp2; y++) {
|
for (uint32_t y = seta_yp1; y < seta_yp2; y++) {
|
||||||
@ -1076,7 +1069,7 @@ void uDisplay::pushColors(uint16_t *data, uint16_t len, boolean not_inverted) {
|
|||||||
if (lvgl_param.use_dma) {
|
if (lvgl_param.use_dma) {
|
||||||
pushPixelsDMA(data, len );
|
pushPixelsDMA(data, len );
|
||||||
} else {
|
} else {
|
||||||
uspi->writePixels(data, len * 2);
|
uspi->writeBytes((uint8_t*)data, len * 2);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user