Skip to content

Fixes problem when using a Mega2560 board where I had to do pin reass… #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/HID/HID_volume/HID_volume.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
//#define ANDROID_CENTRAL

//custom boards may override default pin definitions with BLEHIDPeripheral(PIN_REQ, PIN_RDY, PIN_RST)
//but you will also need to set the pinmode for the output pins PIN_REQ and PIN_RST. See setup() below.
BLEHIDPeripheral bleHIDPeripheral = BLEHIDPeripheral();
BLEMultimedia bleMultimedia;

Expand All @@ -28,6 +29,10 @@ int buttonState;
unsigned long lastInputPollTime = 0;

void setup() {
//set pinMode, if you are using a custom board with different pin assignments
//pinMode(PIN_REQ, OUTPUT);
//pinMode(PIN_RST, OUTPUT);

Serial.begin(9600);

pinMode(BUTTON_PIN, INPUT_PULLUP);
Expand Down