Skip to content

Commit 76337d2

Browse files
committed
switch pins back to guide pins
change pins that were used for testing back to documented pins
1 parent d9ce978 commit 76337d2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

GemmaM0_Band_Jacket/DiscoBandCamp/DiscoBandCamp.ino

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121

2222
// Pins on Adafruit Gemma M0
23-
#define LEFT_PIN PIN_EXTERNAL_NEOPIXELS // Visual Left (LEDs on the wearers right) connected to D1
23+
#define LEFT_PIN 1 // Visual Left (LEDs on the wearers right) connected to D1
2424
#define NUM_LEFT 60 // number of LEDs connected on the Left
25-
#define RIGHT_PIN 4 // Visual Right (LEDs on the wearers left) connected to D0
25+
#define RIGHT_PIN 0 // Visual Right (LEDs on the wearers left) connected to D0
2626
#define NUM_RIGHT 60 // number of LEDs connected on the Right
2727

2828
// Color order (Green/Red/Blue)
@@ -62,8 +62,7 @@ const byte numEffects = (sizeof(effectList)/sizeof(effectList[0]));
6262

6363
// Runs one time at the start of the program (power up or reset)
6464
void setup() {
65-
pinMode(PIN_EXTERNAL_POWER, OUTPUT);
66-
digitalWrite(PIN_EXTERNAL_POWER, HIGH);
65+
6766
//Add the onboard Strip on the Right and Left to create a single array
6867
FastLED.addLeds<CHIPSET, LEFT_PIN, COLOR_ORDER>(leds, 0, NUM_LEFT);
6968
FastLED.addLeds<CHIPSET, RIGHT_PIN, COLOR_ORDER>(leds, NUM_LEFT, NUM_RIGHT);

GemmaM0_Band_Jacket/DiscoBandCamp/buttons.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
// Retained button code from RGB Shades though just using one button
77

88
#define NUMBUTTONS 1
9-
#define MODEBUTTON PIN_EXTERNAL_BUTTON //define the pin the button is connected to
9+
#define MODEBUTTON 2 //define the pin the button is connected to
10+
1011
#define BTNIDLE 0
1112
#define BTNDEBOUNCING 1
1213
#define BTNPRESSED 2

0 commit comments

Comments
 (0)