We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thanks to: Vytautas Janušonis
Reproduce errors using:
Button button = Button(2,PULLUP);
int counter = 0;
void setup() { pinMode(13, OUTPUT); //debug to led 13 Serial.begin(9600); }
void loop() { if(button.uniquePress()) // kitos galimos funkcijos: | isPressed() | wasPressed() | stateChanged() { counter++; Serial.print("On\n"); Serial.println(counter); digitalWrite(13,HIGH); } }
I guess we should add some debounce time constant as to prevent a high frequency registration of presses.
The text was updated successfully, but these errors were encountered:
AlexanderBrevig
No branches or pull requests
Thanks to: Vytautas Janušonis
Reproduce errors using:
include <Button.h>
Button button = Button(2,PULLUP);
int counter = 0;
void setup()
{
pinMode(13, OUTPUT); //debug to led 13
Serial.begin(9600);
}
void loop()
{
if(button.uniquePress()) // kitos galimos funkcijos: | isPressed() | wasPressed() | stateChanged()
{
counter++;
Serial.print("On\n");
Serial.println(counter);
digitalWrite(13,HIGH);
}
}
I guess we should add some debounce time constant as to prevent a high frequency registration of presses.
The text was updated successfully, but these errors were encountered: