Touch Button and WLED

I have finally came back to my kitchen project.
I see that the source code changed since the Aircookie reply and the lines numbers in instructions above do not correspond to the current code.

So, I have done these changes to the source code following the instructions:

  1. changed the BTNPIN to 5 within NpbWrapper.h
    #define BTNPIN 5 //button pin. Needs to have pullup (gpio0 recommended)

  2. Changed LOW to HIGH at button.cpp, line 21:

if (digitalRead(BTNPIN) == HIGH) return true;

  1. Connected three Touch button’s wires to the:
  • 3.3v NodeMCU pin 3.3v
  • GND to NodeMCU’s GND pin
  • I/O to the NodeMCU’s D1 (GPIO5).

No resistors is used (in front of recommendation above).
Works like a charm.
Here is a brief (1 minute) video summary on youtube.

Arisen questions:

  1. How to make the turn ON by the physcall Button connected to GPIO always to the pre-set colors (e.g. sometimes I can play with the effects, but later if the user will turn ON by button - led should light on with white color - not the last turned off color).

Minor questions, not so important:

  1. Is there could be a problem (in the future) of not using the resistor as recommended by Aircookie above?
  2. Are the option to include such behavior to the source code, e.g. to be able to change in user interface the HIGH to LOW in order to make the touch button work.