Fixed ST7735 transfer_byte to write_byte without miso (#1529)

This commit is contained in:
SenexCrenshaw 2021-02-13 03:34:59 -05:00 committed by GitHub
parent 50006e4c42
commit e288aa07fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -407,7 +407,7 @@ void HOT ST7735::senddata_(const uint8_t *data_bytes, uint8_t num_data_bytes) {
this->cs_->digital_write(false);
this->enable();
for (uint8_t i = 0; i < num_data_bytes; i++) {
this->transfer_byte(pgm_read_byte(data_bytes++)); // write byte - SPI library
this->write_byte(pgm_read_byte(data_bytes++)); // write byte - SPI library
}
this->cs_->digital_write(true);
this->disable();