When the AMS1117 module is connected directly to the battery, it continuously draws power, causing battery drain even when the LED is off. Placing it after the touch switch solves the power drain issue but interferes with the dimming function. The AMS1117 has a relatively high quiescent current...