Added small delay inside toggle for edge cases

This commit is contained in:
Melissa LeBlanc-Williams 2019-03-26 07:45:17 -07:00
parent cc96c39e6d
commit a54493b4ae

View File

@ -86,6 +86,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self,
uint8_t *data = cmd + 2; uint8_t *data = cmd + 2;
if (self->init_cs_toggle && self->set_cs != NULL) { if (self->init_cs_toggle && self->set_cs != NULL) {
self->set_cs(self->bus, true); self->set_cs(self->bus, true);
common_hal_time_delay_ms(1);
self->set_cs(self->bus, false); self->set_cs(self->bus, false);
} }
self->send(self->bus, true, cmd, 1); self->send(self->bus, true, cmd, 1);