Skip to content

Commit 0376336

Browse files
committed
Fix a few yaml issues and link to the font docs
1 parent 7940b36 commit 0376336

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cookbook/display_time_temp_oled.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Define the Fonts
9797
9898
9999
- (Optional) You can also use Google fonts with the ``gfonts://`` scheme instead of including font files.
100+
- Find out more in the :doc:`/components/font` documentation.
100101

101102
.. code-block:: yaml
102103
@@ -126,8 +127,8 @@ Note your ``address`` and ``model`` might be different, use the scan option to f
126127
sda: GPIOXX
127128
scl: GPIOXX
128129
scan: false
129-
// manually setting the frequency to a higher rate may avoid long component updates
130-
// frequency: 300kHz
130+
# manually setting the frequency to a higher rate may avoid long component updates
131+
# frequency: 300kHz
131132
132133
display:
133134
- platform: ssd1306_i2c
@@ -178,7 +179,7 @@ Below follows an example that replaces the "Time and Temperature" top printout w
178179
address: 0x3C
179180
lambda: |-
180181
// Print "Alarm State: <state>" in top center
181-
it.printf(64, 0, id(font1), TextAlign::TOP_CENTER, "Alarm State: %s", id(alarm_state).state.c_str());
182+
it.printf(64, 0, id(small), TextAlign::TOP_CENTER, "Alarm State: %s", id(alarm_state).state.c_str());
182183
183184
184185
See Also

0 commit comments

Comments
 (0)