Skip to content

Commit 2c5bcc6

Browse files
committed
change gpio pin
1 parent c4da77f commit 2c5bcc6

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

.vscode/arduino.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"board": "esp8266:esp8266:huzzah",
3+
"configuration": "xtal=80,vt=flash,exception=legacy,ssl=all,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200",
4+
"port": "COM3"
5+
}

.vscode/c_cpp_properties.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Win32",
5+
"includePath": [
6+
"C:\\Users\\wiege\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\**",
7+
"C:\\Users\\wiege\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\**"
8+
],
9+
"forcedInclude": [],
10+
"intelliSenseMode": "msvc-x64"
11+
}
12+
],
13+
"version": 4
14+
}

esp32_interrupts/esp32_interrupts.ino

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct Button
1212
bool pressed;
1313
};
1414

15-
Button button1 = {34, 0, false};
15+
Button button1 = {32, 0, false};
1616

1717
void IRAM_ATTR isr()
1818
{
@@ -23,6 +23,8 @@ void IRAM_ATTR isr()
2323
void setup()
2424
{
2525
Serial.begin(115200);
26+
Serial.printf("Setting up parameters.\n");
27+
Serial.printf("Button PIN: %u\n", button1.PIN);
2628
pinMode(button1.PIN, INPUT_PULLUP);
2729
attachInterrupt(button1.PIN, isr, FALLING);
2830
}
@@ -44,4 +46,4 @@ void loop()
4446
detachInterrupt(button1.PIN);
4547
Serial.println("Interrupt Detached!");
4648
}
47-
}
49+
}

0 commit comments

Comments
 (0)