Skip to content

Commit

Permalink
PB0/PB1 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arpruss committed Nov 11, 2020
1 parent b655733 commit 17f3164
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/CapacitiveController/CapacitiveController.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ HIDKeyboard Keyboard(HID);
#define JOYSTICK_MODE PA10 // ground to set joystick mode

#define NUM_PINS 10
unsigned pins[NUM_PINS] = {PA0,PA1,PA2,PA3,PA4,PA5,PA6,PA7,PA8,PA9};
unsigned pins[NUM_PINS] = {PA0,PA1,PA2,PA3,PA4,PA5,PA6,PA7,PB0,PB1};
unsigned keys[NUM_PINS] = {' ',KEY_UP_ARROW,KEY_LEFT_ARROW,KEY_DOWN_ARROW,KEY_RIGHT_ARROW,'w','a','s','d','f'}; // Makey-Makey also has 'g' and CLICK, but we don't have enough ADC channels
unsigned buttons[NUM_PINS] = { 1, 0, 0, 0, 0, 2, 3, 4, 5, 6 };
unsigned prev[NUM_PINS];
Expand Down
2 changes: 1 addition & 1 deletion examples/CapacitivePiano/CapacitivePiano.ino
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int pins[] = {A0,A1,A2,A3,A4,A5};

#define LED_BUILTIN PB12 // adjust to your board
#define LED_OFF 1
int pins[] = {PA0,PA1,PA2,PA3,PA4,PA5,PA6,PA7};
int pins[] = {PA0,PA1,PA2,PA3,PA4,PA5,PA6,PA7,PB0,PB1};

#ifndef ADCTOUCH_INTERNAL_GROUNDING
# define ADCTOUCH_INTERNAL_GROUNDING PA8
Expand Down
2 changes: 1 addition & 1 deletion examples/ShowButtons/ShowButtons.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//

#define NUM_PINS 10
unsigned pins[NUM_PINS] = {PA0,PA1,PA2,PA3,PA4,PA5,PA6,PA7,PA8,PA9};
unsigned pins[NUM_PINS] = {PA0,PA1,PA2,PA3,PA4,PA5,PA6,PA7,PB0,PB1};
unsigned prev[NUM_PINS];

ADCTouchSensor* sensors[NUM_PINS];
Expand Down

0 comments on commit 17f3164

Please sign in to comment.