Skip to content

Commit eb11fe6

Browse files
authored
Add files via upload
1 parent b55da56 commit eb11fe6

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#define pushButton_pin 33
2+
#define LED_pin 32
3+
void IRAM_ATTR toggleLED()
4+
{
5+
digitalWrite(LED_pin, !digitalRead(LED_pin));
6+
}
7+
void setup()
8+
{
9+
pinMode(LED_pin, OUTPUT);
10+
pinMode(pushButton_pin, INPUT_PULLUP);
11+
attachInterrupt(pushButton_pin, toggleLED, RISING);
12+
}
13+
void loop()
14+
{
15+
}

ESP32 Interrupts/Tittle.png

346 KB
Loading
147 KB
Loading

0 commit comments

Comments
 (0)