Skip to content

Commit 1b9f08d

Browse files
committed
Revert "CI extern"
This reverts commit 2742773.
1 parent 86f10f1 commit 1b9f08d

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

GemmaM0_Band_Jacket/DiscoBandCamp/DiscoBandCamp.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#include "utils.h"
4343
#include "effects.h"
4444
#include "buttons.h"
45-
extern XYMap myXYMap;
4645

4746
// list of Functions:
4847
functionList effectList[] = {SolidRed, //all pixels solid red

GemmaM0_Band_Jacket/DiscoBandCamp/XYmap.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
// XY(x,y) takes x and y coordinates and returns an LED index number,
2424
// for use like this: leds[ XY(x,y) ] == CRGB::Red;
2525

26-
#ifndef XYMAP_H
27-
#define XYMAP_H
28-
2926
#include <FastLED.h>
3027

3128
// Parameters for width and height
@@ -34,7 +31,7 @@ const uint8_t kMatrixHeight = 8;
3431
const uint8_t kBorderWidth = 2; //for swirly
3532

3633
#define NUM_LEDS (kMatrixWidth * kMatrixHeight)
37-
extern CRGB leds[ NUM_LEDS ];
34+
CRGB leds[ NUM_LEDS ];
3835

3936
// This function will return the right 'led index number' for
4037
// a given set of X and Y coordinates on DiscoBandCamp
@@ -85,7 +82,6 @@ uint16_t XY(uint16_t x, uint16_t y, uint16_t width, uint16_t height)
8582
uint8_t j = JacketTable[i];
8683
return j;
8784
}
88-
#endif
8985

9086
// Instantiate an XYMap object
9187
XYMap myXYMap = XYMap::constructWithUserFunction(kMatrixWidth, kMatrixHeight, XY);

GemmaM0_Band_Jacket/DiscoBandCamp/effects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Selection of effects from the FastLED library & Macetech RGB Shades
66
#include "XYmap.h"
7-
extern XYMap myXYMap;
7+
88
// Triple Sine Waves
99
void threeSine() {
1010

GemmaM0_Band_Jacket/DiscoBandCamp/utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
22
//
33
// SPDX-License-Identifier: MIT
4-
#include "XYmap.h"
5-
extern XYMap myXYMap;
4+
65
// Assorted useful functions and variables
6+
#include "XYmap.h"
77
// Global variables
88
boolean effectInit = false; // indicates if a pattern has been recently switched
99
uint16_t effectDelay = 0; // time between automatic effect changes

0 commit comments

Comments
 (0)