1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 15:18:16 +00:00

make bufer 1 byte to avoid the

buffer allocation error
This commit is contained in:
Michiel van Turnhout 2019-07-29 12:48:04 +02:00
parent 4a7ff4135c
commit 3a3fc2dd98

View File

@ -122,7 +122,7 @@ void HOT ili9341::draw_absolute_pixel_internal(int x, int y, int color) {
// should return the total size: return this->get_width_internal() * this->get_height_internal() * 2 // 16bit color // should return the total size: return this->get_width_internal() * this->get_height_internal() * 2 // 16bit color
// values per bit is huge // values per bit is huge
uint32_t ili9341::get_buffer_length_() { return 0; } uint32_t ili9341::get_buffer_length_() { return 1; }
void ili9341::start_command_() { void ili9341::start_command_() {
this->dc_pin_->digital_write(false); this->dc_pin_->digital_write(false);