mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Add SSD1322 doc (#869)
This commit is contained in:
parent
48b9c9e4ae
commit
3460a8fb1b
BIN
components/display/images/ssd1322-full.jpg
Normal file
BIN
components/display/images/ssd1322-full.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 216 KiB |
65
components/display/ssd1322.rst
Normal file
65
components/display/ssd1322.rst
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
SSD1322 OLED Display
|
||||||
|
====================
|
||||||
|
|
||||||
|
.. seo::
|
||||||
|
:description: Instructions for setting up SSD1322 OLED display drivers.
|
||||||
|
:image: ssd1322.jpg
|
||||||
|
|
||||||
|
.. _ssd1322-spi:
|
||||||
|
|
||||||
|
Usage
|
||||||
|
-----
|
||||||
|
|
||||||
|
The ``ssd1322_spi`` display platform allows you to use
|
||||||
|
SSD1322 (`datasheet <https://www.newhavendisplay.com/specs/NHD-3.12-25664UCW2.pdf>`__,
|
||||||
|
`Newhaven Display <https://www.newhavendisplay.com/nhd31225664ucw2-p-9583.html>`__)
|
||||||
|
displays with ESPHome. Note that this component is for displays that are connected via the 4-Wire :ref:`SPI bus <spi>`.
|
||||||
|
|
||||||
|
.. figure:: images/ssd1322-full.jpg
|
||||||
|
:align: center
|
||||||
|
:width: 75.0%
|
||||||
|
|
||||||
|
SSD1322 OLED Display
|
||||||
|
|
||||||
|
Connect CLK, DIN, CS, DC, and RST to pins on your ESP. For power, connect
|
||||||
|
VCC to 3.3V and GND to GND.
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
# Example configuration entry
|
||||||
|
spi:
|
||||||
|
clk_pin: D5
|
||||||
|
mosi_pin: D7
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: ssd1322_spi
|
||||||
|
model: "SSD1322 256x64"
|
||||||
|
reset_pin: D0
|
||||||
|
cs_pin: D8
|
||||||
|
dc_pin: D1
|
||||||
|
lambda: |-
|
||||||
|
it.print(0, 0, id(font), "Hello World!");
|
||||||
|
|
||||||
|
Configuration variables:
|
||||||
|
************************
|
||||||
|
|
||||||
|
- **model** (**Required**): The model of the display. At present, only one option is available:
|
||||||
|
|
||||||
|
- ``SSD1322 256x64``
|
||||||
|
|
||||||
|
- **reset_pin** (:ref:`Pin Schema <config-pin_schema>`): The RESET pin.
|
||||||
|
- **cs_pin** (:ref:`Pin Schema <config-pin_schema>`): The CS pin.
|
||||||
|
- **dc_pin** (:ref:`Pin Schema <config-pin_schema>`): The DC pin.
|
||||||
|
- **lambda** (*Optional*, :ref:`lambda <config-lambda>`): The lambda to use for rendering the content on the display.
|
||||||
|
See :ref:`display-engine` for more information.
|
||||||
|
- **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.
|
||||||
|
|
||||||
|
See Also
|
||||||
|
--------
|
||||||
|
|
||||||
|
- :doc:`index`
|
||||||
|
- :apiref:`ssd1322_base/ssd1322_base.h`
|
||||||
|
- `SSD1322 Display documentation <https://www.newhavendisplay.com/specs/NHD-3.12-25664UCW2.pdf>`__ at `Newhaven Display <https://www.newhavendisplay.com/nhd31225664ucw2-p-9583.html>`__
|
||||||
|
- :ghedit:`Edit`
|
BIN
images/ssd1322.jpg
Normal file
BIN
images/ssd1322.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@ -281,6 +281,7 @@ Display Components
|
|||||||
TM1637, components/display/tm1637, tm1637.jpg
|
TM1637, components/display/tm1637, tm1637.jpg
|
||||||
Nextion, components/display/nextion, nextion.jpg
|
Nextion, components/display/nextion, nextion.jpg
|
||||||
SSD1306, components/display/ssd1306, ssd1306.jpg
|
SSD1306, components/display/ssd1306, ssd1306.jpg
|
||||||
|
SSD1322, components/display/ssd1322, ssd1322.jpg
|
||||||
SSD1325, components/display/ssd1325, ssd1325.jpg
|
SSD1325, components/display/ssd1325, ssd1325.jpg
|
||||||
SSD1327, components/display/ssd1327, ssd1327.jpg
|
SSD1327, components/display/ssd1327, ssd1327.jpg
|
||||||
SSD1331, components/display/ssd1331, ssd1331.jpg
|
SSD1331, components/display/ssd1331, ssd1331.jpg
|
||||||
|
Loading…
Reference in New Issue
Block a user