change pin in hwpwm and hid_camerashutter sketches

This commit is contained in:
hathach committed 2017-06-30 17:12:07 +07:00
1 parent 857dd6c266
commit f2b53cb63f
3 files changed
+17 -4

No files matched your search

+1
View File
@@ -9,6 +9,7 @@
- Updated for latest Bluefruit LE Connect version with RGBW support
- Fix #48 SPI & I2C warnings
- Change board define from ARDUINO_FEATHER52 to ARDUINO_NRF52_FEATHER (ARDUINO_FEATHER52 still exists for backward comaptiable)
- change pin in hwpwm and hid_camerashutter sketches
## 0.6.0
@@ -29,13 +29,25 @@
#include <Arduino.h>
// Maximum 12 pins can be used for 3 PWM module ( 4 channel each )
#if defined ARDUINO_NRF52_FEATHER
int pins[12] =
{
PIN_A0 , PIN_A1 , PIN_A2 , PIN_A3,
PIN_A4 , PIN_A5 , PIN_A6 , LED_RED, /* avoid A7 (VBAT) */
27 , LED_BLUE, PIN_WIRE_SDA, PIN_WIRE_SCL
A0 , A1 , A2 , A3,
A4 , A5 , A6 , LED_RED, /* avoid A7 (VBAT) */
27 , LED_BLUE, PIN_WIRE_SDA, PIN_WIRE_SCL
};
#elif defined ARDUINO_NRF52_METRO
int pins[12] =
{
D0, D1 , D2, D3,
D4, D5 , D6, LED_RED,
D7, LED_BLUE, D8, D9
};
#endif
/**************************************************************************/
/*!
@brief The setup function runs once when reset the board
@@ -22,7 +22,7 @@
BLEDis bledis;
BLEHidAdafruit blehid;
#define PIN_SHUTTER 27
#define PIN_SHUTTER 11
void setup()
{