TTP229-LSF i2c device support (#205)

* add ttp229-lsf docs

* fixed link to datasheet

* remove indent

* type image filename

* convert image to jpg

* Update ttp229.rst

- Change id in example to name. Reason: otherwise it won't show up in frontend and users will be confused
- Reorder conf options
- esphomelib -> esphome

* Remove disqus
This commit is contained in:
Michiel van Turnhout 2019-03-31 19:00:45 +02:00 committed by Otto Winter
parent 04eda24475
commit 6d6b16fe6c
4 changed files with 53 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,52 @@
TTP229 Capacitive Touch Sensor
==============================
.. seo::
:description: Instructions for setting up TTP229 Capacitive Touch Sensor
:image: ttp229.jpg
:keywords: TTP229
The ``ttp229`` sensor platform allows you to use your TTP229 `datasheet <https://www.tontek.com.tw/uploads/product/106/TTP229-LSF_V1.0_EN.pdf>`__
Capacitive Touch Sensor with ESPHome. The :ref:`I²C <i2c>` is required to be set up in your configuration for this sensor to work.
.. figure:: images/ttp229-full.jpg
:align: center
:width: 50.0%
TTP229 Capacitive Touch Sensor. Image by `RobotDyn`_.
.. _RobotDyn: https://www.tinytronics.nl/shop/nl/sensoren/touch/robotdyn-touch-module-ttp229-lsf-16-kanaals
.. code-block:: yaml
# Example configuration entry
ttp229_lsf:
id: ttp229_device
binary_sensor:
- platform: ttp229_lsf
name: TTP229 Channel 0
channel: 0
Configuration variables:
------------------------
The configuration is made up of two parts: The central component, and individual Binary sensors per channel.
Base Configuration:
- **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor.
Binary Sensor Configuration:
- **name** (**Required**, string): The name of the binary sensor.
- **channel** (**Required**, integer): The channel number at the ttp229 the touchkey is connected to.
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
- All other options from :ref:`Binary Sensor <config-binary_sensor>`.
See Also
--------
- :ref:`sensor-filters`
- :apiref:`sensor/ttp229_sensor.h`
- :ghedit:`Edit`

BIN
images/ttp229.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -153,6 +153,7 @@ Binary Sensor Components
Remote Receiver, components/binary_sensor/remote_receiver, remote.svg
PN532, components/binary_sensor/pn532, pn532.jpg
RDM6300, components/binary_sensor/rdm6300, rdm6300.jpg
TTP229-LSF Capacitive Touch Sensor, components/binary_sensor/ttp229, ttp229.jpg
Custom Binary Sensor, components/binary_sensor/custom, language-cpp.svg
Output Components