Skip to content

Commit

Permalink
fix button settings - type (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2199 authored Feb 3, 2021
1 parent a092d24 commit 9b28455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ mqtt - mqtt settings
button - button settings

pin - GPIO pin number, set to 255 if you have no button connected
type - 0 if pin button is connected to 3v3, 0 if button connected to GND
type - 1 if pin button is connected to 3v3, 0 if button connected to GND
state - set to 1 to invert button state, 0 for normal operation

Please refer to https://github.com/esp8266/Arduino/blob/master/variants/nodemcu/pins_arduino.h#L40 for pin numbers if using nodemcu-like ESP8266 boards! This configuration uses numeric gpio pins, not the ones marked as D0-D10 on the board!
Expand Down

0 comments on commit 9b28455

Please sign in to comment.