Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serial command ??
#4
1. suggest you use KC868-A4's digital input make for 4 buttons for test.

binary_sensor:
- platform: gpio
name: "input1"
pin:
number: 36
inverted: true

- platform: gpio
name: "input2"
pin:
number: 39
inverted: true

- platform: gpio
name: "input3"
pin:
number: 27
inverted: true

- platform: gpio
name: "input4"
pin:
number: 14
inverted: true

2. you can add these for a test:

on_...:
- uart.write: 'CD'

3. if can't work, you can try to exchange your RXD,TXD pin, such as :
uart:
tx_pin: GPIO16
rx_pin: GPIO17
baud_rate: 9600
Reply


Messages In This Thread
Serial command ?? - by vincen - 01-15-2023, 09:24 AM
RE: Serial command ?? - by admin - 01-16-2023, 01:15 PM
RE: Serial command ?? - by vincen - 01-16-2023, 04:06 PM
RE: Serial command ?? - by admin - 01-17-2023, 02:16 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)