Skip to content

Commit f2b53cb

Browse files
committed
change pin in hwpwm and hid_camerashutter sketches
1 parent 857dd6c commit f2b53cb

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Updated for latest Bluefruit LE Connect version with RGBW support
1010
- Fix #48 SPI & I2C warnings
1111
- Change board define from ARDUINO_FEATHER52 to ARDUINO_NRF52_FEATHER (ARDUINO_FEATHER52 still exists for backward comaptiable)
12+
- change pin in hwpwm and hid_camerashutter sketches
1213

1314
## 0.6.0
1415

libraries/Bluefruit52Lib/examples/Hardware/hwpwm/hwpwm.ino

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,25 @@
2929
#include <Arduino.h>
3030

3131
// Maximum 12 pins can be used for 3 PWM module ( 4 channel each )
32+
#if defined ARDUINO_NRF52_FEATHER
3233
int pins[12] =
3334
{
34-
PIN_A0 , PIN_A1 , PIN_A2 , PIN_A3,
35-
PIN_A4 , PIN_A5 , PIN_A6 , LED_RED, /* avoid A7 (VBAT) */
36-
27 , LED_BLUE, PIN_WIRE_SDA, PIN_WIRE_SCL
35+
A0 , A1 , A2 , A3,
36+
A4 , A5 , A6 , LED_RED, /* avoid A7 (VBAT) */
37+
27 , LED_BLUE, PIN_WIRE_SDA, PIN_WIRE_SCL
3738
};
3839

40+
#elif defined ARDUINO_NRF52_METRO
41+
42+
int pins[12] =
43+
{
44+
D0, D1 , D2, D3,
45+
D4, D5 , D6, LED_RED,
46+
D7, LED_BLUE, D8, D9
47+
};
48+
49+
#endif
50+
3951
/**************************************************************************/
4052
/*!
4153
@brief The setup function runs once when reset the board

libraries/Bluefruit52Lib/examples/Peripheral/hid_camerashutter/hid_camerashutter.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
BLEDis bledis;
2323
BLEHidAdafruit blehid;
2424

25-
#define PIN_SHUTTER 27
25+
#define PIN_SHUTTER 11
2626

2727
void setup()
2828
{

0 commit comments

Comments
 (0)