Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ESPHome GPIO
#1
How can I reference the GPIO and analog pins in ESPHome? Can you provide some example? Thanks.
Reply
#2
sure, all our boards support ESPHome. Here is demo config:

# Example configuration entry
sensor:
- platform: adc
pin: 36
name: "analog-1"
update_interval: 10s
attenuation: 11db

- platform: adc
pin: 34
name: "analog-2"
update_interval: 10s
attenuation: 11db

- platform: adc
pin: 35
name: "analog-3"
update_interval: 10s
attenuation: 11db

- platform: adc
pin: 39
name: "analog-4"
update_interval: 10s
attenuation: 11db
Reply
#3
Thank you admin! The board also has 3 GPIO pins, what number are they? Can I use any of them for PWM output?
Reply
#4
here is all GPIO define: https://www.kincony.com/forum/showthread.php?tid=1666
sorry, PWM already have used by Ethernet pins.
Reply


Forum Jump:


Users browsing this thread: