1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 19:32:19 +01:00

Change COLOR_ON to be 255 values instead of 1 (#1594)

This commit is contained in:
Jesse Hills
2021-03-14 13:27:16 +13:00
committed by GitHub
parent 2e7c1d7345
commit 848a5f1680

View File

@@ -9,7 +9,7 @@ namespace display {
static const char *TAG = "display"; static const char *TAG = "display";
const Color COLOR_OFF(0, 0, 0, 0); const Color COLOR_OFF(0, 0, 0, 0);
const Color COLOR_ON(1, 1, 1, 1); const Color COLOR_ON(255, 255, 255, 255);
void DisplayBuffer::init_internal_(uint32_t buffer_length) { void DisplayBuffer::init_internal_(uint32_t buffer_length) {
this->buffer_ = new uint8_t[buffer_length]; this->buffer_ = new uint8_t[buffer_length];