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
The code u provided uses setup alone which should be under loop. Please update.
#define pushButton_pin 2 #define LED_pin 1 void IRAM_ATTR toggleLED() { digitalWrite(LED_pin, !digitalRead(LED_pin)); } void setup() { pinMode(LED_pin, OUTPUT); pinMode(pushButton_pin, INPUT_PULLUP); disableCore0WDT(); } void loop() { attachInterrupt(pushButton_pin, toggleLED, RISING); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The code u provided uses setup alone which should be under loop.
Please update.
#define pushButton_pin 2
#define LED_pin 1
void IRAM_ATTR toggleLED()
{
digitalWrite(LED_pin, !digitalRead(LED_pin));
}
void setup()
{
pinMode(LED_pin, OUTPUT);
pinMode(pushButton_pin, INPUT_PULLUP);
disableCore0WDT();
}
void loop()
{
attachInterrupt(pushButton_pin, toggleLED, RISING);
}
The text was updated successfully, but these errors were encountered: