Skip to content

Commit 7171e44

Browse files
from Bluepad32 v3.7.0
1 parent 751983a commit 7171e44

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

bluepad32_files/libraries/Bluepad32_ESP32/examples/Controller/Controller.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ void onDisconnectedGamepad(GamepadPtr gp) {
4545
void setup() {
4646
Serial.begin(115200);
4747
Serial.printf("Firmware: %s\n", BP32.firmwareVersion());
48+
const uint8_t* addr = BP32.localBdAddress();
49+
Serial.printf("BD Addr: %2X:%2X:%2X:%2X:%2X:%2X\n", addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
4850

4951
// Setup the Bluepad32 callbacks
5052
BP32.setup(&onConnectedGamepad, &onDisconnectedGamepad);
@@ -146,4 +148,4 @@ void loop() {
146148

147149
// vTaskDelay(1);
148150
delay(150);
149-
}
151+
}

main/sketch.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ void onDisconnectedGamepad(GamepadPtr gp) {
4545
void setup() {
4646
Serial.begin(115200);
4747
Serial.printf("Firmware: %s\n", BP32.firmwareVersion());
48+
const uint8_t* addr = BP32.localBdAddress();
49+
Serial.printf("BD Addr: %2X:%2X:%2X:%2X:%2X:%2X\n", addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
4850

4951
// Setup the Bluepad32 callbacks
5052
BP32.setup(&onConnectedGamepad, &onDisconnectedGamepad);
@@ -146,4 +148,4 @@ void loop() {
146148

147149
// vTaskDelay(1);
148150
delay(150);
149-
}
151+
}

0 commit comments

Comments
 (0)