Hi
If I wish to connect a push switch to a defined input for my wemos d1 board is this how I would connect the switch
thanks oldvolt
If you use:
pinMode(SwitchPin, INPUT_PULLUP);
With SwitchPin being defined as one of the WeMos pins with internal pullup resistors you don’t need a resistor.
There is also the INPUT_PULLDOWN function but this is only available for GPIO 16 (reset pin).
Don’t forget to debounce the switch.