Skip to content

Commit 3efa3d0

Browse files
updating example
1 parent 026037a commit 3efa3d0

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// This file is here only to silence warnings from Arduino IDE
2+
// Currently IDE doesn't support no-code libraries, like this collection of example sketches.

bluepad32_files/package_esp32_bluepad32_index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{
1313
"name": "esp32_bluepad32",
1414
"architecture": "esp32",
15-
"version": "3.7.0-2.0.7",
15+
"version": "3.7.0",
1616
"category": "Contributed",
1717
"url": "https://gitlab.com/ricardoquesada/bluepad32/uploads/9b79b1b9d3249782b9d08693f390ce94/bluepad32-arduino-v3.7.0.zip",
1818
"archiveFileName": "esp32-bluepad32-3.7.0.zip",

main/sketch.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <Arduino.h>
21
#include <Bluepad32.h>
32

43
GamepadPtr myGamepads[BP32_MAX_GAMEPADS];
@@ -139,5 +138,12 @@ void loop() {
139138
}
140139
}
141140

141+
// The main loop must have some kind of "yield to lower priority task" event.
142+
// Otherwise the watchdog will get triggered.
143+
// If your main loop doesn't have one, just add a simple `vTaskDelay(1)`.
144+
// Detailed info here:
145+
// https://stackoverflow.com/questions/66278271/task-watchdog-got-triggered-the-tasks-did-not-reset-the-watchdog-in-time
146+
147+
// vTaskDelay(1);
142148
delay(150);
143149
}

0 commit comments

Comments
 (0)