Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs for LCD display strftime #95

Merged
merged 1 commit into from
Dec 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion esphomeyaml/components/display/lcd_gpio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,14 @@ by default which means the character at the top left.
// Result: "Sensor value: 42"

// Print the current time
it.strftime("It is %H:%M on %d.%m.%Y");
it.strftime("It is %H:%M on %d.%m.%Y", id(my_time).now());
// Result for 10:06 on august 21st 2018 -> "It is 10:06 on 21.08.2018"

# (Optional) For displaying time:
time:
- platform: sntp
id: my_time

.. note::

If you're not seeing anything on the display, make sure you try turning the contrast potentiometer around.
Expand Down