mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-06-28 10:55:09 +02:00
Update example to use Color::BLACK not COLOR_BLACK (#2670)
COLOR_BLACK now generates a deprecation warning, update the example to use the recommended name.
This commit is contained in:
parent
aac1c4e498
commit
37d4e88a3d
|
@ -35,7 +35,7 @@ beyond the typical SPI connections, it is better suited for use with the ESP32.
|
|||
reset_pin: 33
|
||||
|
||||
lambda: |-
|
||||
it.fill(COLOR_BLACK);
|
||||
it.fill(Color::BLACK);
|
||||
it.print(0, 0, id(my_font), id(my_red), TextAlign::TOP_LEFT, "Hello World!");
|
||||
|
||||
Configuration variables:
|
||||
|
|
Loading…
Reference in New Issue
Block a user