sharpdisplay: Make PARTIAL_UPDATES unconditional
This commit is contained in:
parent
06f6cd067d
commit
195c0ea986
@ -183,8 +183,6 @@ void common_hal_sharpdisplay_framebuffer_swapbuffers(sharpdisplay_framebuffer_ob
|
|||||||
uint8_t *data = self->bufinfo.buf;
|
uint8_t *data = self->bufinfo.buf;
|
||||||
data[0] ^= SHARPMEM_BIT_VCOM_LSB;
|
data[0] ^= SHARPMEM_BIT_VCOM_LSB;
|
||||||
|
|
||||||
#define PARTIAL_UPDATES (1)
|
|
||||||
#if PARTIAL_UPDATES
|
|
||||||
common_hal_busio_spi_write(self->bus, data++, 1);
|
common_hal_busio_spi_write(self->bus, data++, 1);
|
||||||
|
|
||||||
// output each changed row
|
// output each changed row
|
||||||
@ -198,9 +196,6 @@ void common_hal_sharpdisplay_framebuffer_swapbuffers(sharpdisplay_framebuffer_ob
|
|||||||
|
|
||||||
// output a trailing zero
|
// output a trailing zero
|
||||||
common_hal_busio_spi_write(self->bus, data, 1);
|
common_hal_busio_spi_write(self->bus, data, 1);
|
||||||
#else
|
|
||||||
common_hal_busio_spi_write(self->bus, data, self->bufinfo.len);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// set chip select low
|
// set chip select low
|
||||||
common_hal_digitalio_digitalinout_set_value(&self->chip_select, false);
|
common_hal_digitalio_digitalinout_set_value(&self->chip_select, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user