Add contrast option docs to PCD8544 (#834)

* Add docs for esphome/esphome#1348

* Update components/display/pcd8544.rst

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Dimitris Zervas 2020-11-02 23:05:35 +02:00 committed by GitHub
parent 5cd8d5204e
commit d608db993c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,7 @@ VCC to 3.3V and GND to GND.
reset_pin: D0
cs_pin: D8
dc_pin: D1
contrast: 0x7f
lambda: |-
it.print(0, 0, id(font), "Hello World!");
@ -60,6 +61,7 @@ Configuration variables:
- **update_interval** (*Optional*, :ref:`config-time`): The interval to re-draw the screen. Defaults to ``5s``.
- **pages** (*Optional*, list): Show pages instead of a single lambda. See :ref:`display-pages`.
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
- **contrast** (*Optional*, int): Set screen contrast (0-255). Defaults to ``0x7f``.
See Also