Moving Toggle to before command fixes driver issue
This commit is contained in:
parent
0c33f7fdb4
commit
b25c4baeec
@ -60,6 +60,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self,
|
||||
self->begin_transaction = common_hal_displayio_parallelbus_begin_transaction;
|
||||
self->send = common_hal_displayio_parallelbus_send;
|
||||
self->end_transaction = common_hal_displayio_parallelbus_end_transaction;
|
||||
self->set_cs = NULL;
|
||||
} else if (MP_OBJ_IS_TYPE(bus, &displayio_fourwire_type)) {
|
||||
self->begin_transaction = common_hal_displayio_fourwire_begin_transaction;
|
||||
self->send = common_hal_displayio_fourwire_send;
|
||||
@ -82,12 +83,12 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self,
|
||||
bool delay = (data_size & DELAY) != 0;
|
||||
data_size &= ~DELAY;
|
||||
uint8_t *data = cmd + 2;
|
||||
self->send(self->bus, true, cmd, 1);
|
||||
self->send(self->bus, false, data, data_size);
|
||||
if (self->init_cs_toggle && self->set_cs != NULL) {
|
||||
self->set_cs(self->bus, true);
|
||||
self->set_cs(self->bus, false);
|
||||
}
|
||||
self->send(self->bus, true, cmd, 1);
|
||||
self->send(self->bus, false, data, data_size);
|
||||
uint16_t delay_length_ms = 10;
|
||||
if (delay) {
|
||||
data_size++;
|
||||
|
Loading…
Reference in New Issue
Block a user