You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case is for a light switch that normally functions as a momentary switch, but acts as a dim up/dim down switch when it is held for more than 250ms.
So to achieve this I have attached a function for the onPressedFor callback
I would then like another function to be called back every 50 ms so the lighting can be ramped up or down
```` powerButton.onPresseContinuesr(50, keepDimming); // notify the dimmer to move down a level
I have made some changes to a fork of the code. Are you interested in reviewing them for a pull request ?
The text was updated successfully, but these errors were encountered:
My use case is for a light switch that normally functions as a momentary switch, but acts as a dim up/dim down switch when it is held for more than 250ms.
So to achieve this I have attached a function for the onPressedFor callback
The text was updated successfully, but these errors were encountered: