mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
add font to usage example (#1050)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
63d36b4d7d
commit
cd361ae115
@ -49,6 +49,11 @@ configuration.
|
||||
.. code-block:: yaml
|
||||
|
||||
# Example configuration entry
|
||||
font:
|
||||
- file: 'fonts/Comic Sans MS.ttf'
|
||||
id: font1
|
||||
size: 8
|
||||
|
||||
spi:
|
||||
clk_pin: D0
|
||||
mosi_pin: D1
|
||||
@ -62,7 +67,7 @@ configuration.
|
||||
model: 2.90in
|
||||
full_update_every: 30
|
||||
lambda: |-
|
||||
it.print(0, 0, id(font), "Hello World!");
|
||||
it.print(0, 0, id(font1), "Hello World!");
|
||||
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user