From 17f3164b860b19f1d1f94a9db1e8b26b3cf4709a Mon Sep 17 00:00:00 2001 From: arpruss Date: Wed, 11 Nov 2020 12:50:00 -0600 Subject: [PATCH] PB0/PB1 fix --- examples/CapacitiveController/CapacitiveController.ino | 2 +- examples/CapacitivePiano/CapacitivePiano.ino | 2 +- examples/ShowButtons/ShowButtons.ino | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/CapacitiveController/CapacitiveController.ino b/examples/CapacitiveController/CapacitiveController.ino index bfb7761..f87a47e 100755 --- a/examples/CapacitiveController/CapacitiveController.ino +++ b/examples/CapacitiveController/CapacitiveController.ino @@ -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]; diff --git a/examples/CapacitivePiano/CapacitivePiano.ino b/examples/CapacitivePiano/CapacitivePiano.ino index c4b5660..441fdce 100644 --- a/examples/CapacitivePiano/CapacitivePiano.ino +++ b/examples/CapacitivePiano/CapacitivePiano.ino @@ -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 diff --git a/examples/ShowButtons/ShowButtons.ino b/examples/ShowButtons/ShowButtons.ino index 44905fc..4962232 100755 --- a/examples/ShowButtons/ShowButtons.ino +++ b/examples/ShowButtons/ShowButtons.ino @@ -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];