Skip to content

Commit

Permalink
Change default GPIO
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed May 19, 2024
1 parent 0a29276 commit ec8b724
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ external_components:
- source: github://AzonInc/ESPHome_tcs_intercom

tcs_intercom:
rx_pin: GPIO22
tx_pin: GPIO23
rx_pin: GPIO9
tx_pin: GPIO8
event: "tcs"
bus_command:
name: "Last Bus Command"
Expand All @@ -62,8 +62,8 @@ button:
Configuration variables:
------------------------
- **rx_pin** (*Optional*, pin): The pin used to receive commands. Defaults to ``GPIO47``.
- **tx_pin** (*Optional*, pin): The pin used to transmitt commands. Defaults to ``GPIO48``.
- **rx_pin** (*Optional*, pin): The pin used to receive commands. Defaults to ``GPIO9``.
- **tx_pin** (*Optional*, pin): The pin used to transmitt commands. Defaults to ``GPIO8``.
- <a id="eventlist">**event**</a> (_Optional_, string): The name of the event that will be generated on home assistant when receiving a command from the bus. For example, if set to `tcs`, the event generated will be "esphome.tcs".
Read more about how to use it in the [event section](#event)
Expand Down
4 changes: 2 additions & 2 deletions components/tcs_intercom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def validate_config(config):
cv.Schema(
{
cv.GenerateID(): cv.declare_id(TCSIntercom),
cv.Optional(CONF_RX_PIN, default=48): pins.internal_gpio_input_pin_schema,
cv.Optional(CONF_TX_PIN, default=47): pins.internal_gpio_output_pin_schema,
cv.Optional(CONF_RX_PIN, default=9): pins.internal_gpio_input_pin_schema,
cv.Optional(CONF_TX_PIN, default=8): pins.internal_gpio_output_pin_schema,
cv.Optional(CONF_EVENT, default="tcs"): cv.string,
cv.Optional(CONF_BUS_COMMAND): text_sensor.text_sensor_schema(
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
Expand Down

0 comments on commit ec8b724

Please sign in to comment.