-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get rid of #define PIN_INPUT? #143
Comments
This is what I did: Added a copy OneButton::OneButton to the library void initOB(const int pin, const boolean activeLow = true, const bool pullupActive = true); void OneButton::initOB(const int pin, const boolean activeLow, const bool pullupActive) if (activeLow) { Further #include <OneButton.h> OneButton button1; void setup() It works. But I'm not sure if this is the right way. |
I want to use the GPIO number obtained from SPIFFS in OneButton.
Something like this:
#include <OneButton.h>
#include <FS.h>
void setup()
{
File _file = SPIFFS.open
...
BUTTON_pin = r_c.toInt();
...
OneButton button1(BUTTON_pin, true, true);
}
Is this possible? How?
The text was updated successfully, but these errors were encountered: