Skip to content

Commit 1aea90e

Browse files
committed
add PIN_BUZZER to variants with built-in speaker
1 parent 5e0bfe1 commit 1aea90e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

variants/circuitplayground_nrf52840/variant.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,17 @@ extern "C"
5454
#define LED_STATE_ON 1 // State when LED is litted
5555

5656
// Buttons
57-
#define PIN_BUTTON1 (4)
58-
#define PIN_BUTTON2 (5)
57+
#define PIN_BUTTON1 (4) // Button A (Left)
58+
#define PIN_BUTTON2 (5) // Button B (Right)
5959

6060
// Microphone
6161
#define PIN_PDM_DIN 24
6262
#define PIN_PDM_CLK 25
6363
#define PIN_PDM_PWR -1 // not used
6464

65+
// Buzzer
66+
#define PIN_BUZZER 12
67+
6568
/*
6669
* Analog pins
6770
*/

variants/clue_nrf52840/variant.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,17 @@ extern "C"
5252
#define LED_STATE_ON 1 // State when LED is litted
5353

5454
// Buttons
55-
#define PIN_BUTTON1 (5)
56-
#define PIN_BUTTON2 (11)
55+
#define PIN_BUTTON1 (5) // Button A
56+
#define PIN_BUTTON2 (11) // Button B
5757

5858
// Microphone
5959
#define PIN_PDM_DIN 35
6060
#define PIN_PDM_CLK 36
6161
#define PIN_PDM_PWR -1 // not used
6262

63+
// Buzzer
64+
#define PIN_BUZZER 46
65+
6366
/*
6467
* Analog pins
6568
*/

0 commit comments

Comments
 (0)