Revert "CI extern"

This reverts commit 27427735ee.
This commit is contained in:
Liz 2025-01-06 18:26:16 -05:00
parent 86f10f190f
commit 1b9f08dad7
4 changed files with 4 additions and 9 deletions

View file

@ -42,7 +42,6 @@
#include "utils.h"
#include "effects.h"
#include "buttons.h"
extern XYMap myXYMap;
// list of Functions:
functionList effectList[] = {SolidRed, //all pixels solid red

View file

@ -23,9 +23,6 @@
// XY(x,y) takes x and y coordinates and returns an LED index number,
// for use like this: leds[ XY(x,y) ] == CRGB::Red;
#ifndef XYMAP_H
#define XYMAP_H
#include <FastLED.h>
// Parameters for width and height
@ -34,7 +31,7 @@ const uint8_t kMatrixHeight = 8;
const uint8_t kBorderWidth = 2; //for swirly
#define NUM_LEDS (kMatrixWidth * kMatrixHeight)
extern CRGB leds[ NUM_LEDS ];
CRGB leds[ NUM_LEDS ];
// This function will return the right 'led index number' for
// 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)
uint8_t j = JacketTable[i];
return j;
}
#endif
// Instantiate an XYMap object
XYMap myXYMap = XYMap::constructWithUserFunction(kMatrixWidth, kMatrixHeight, XY);

View file

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

View file

@ -1,9 +1,9 @@
// SPDX-FileCopyrightText: 2019 Anne Barela for Adafruit Industries
//
// SPDX-License-Identifier: MIT
#include "XYmap.h"
extern XYMap myXYMap;
// Assorted useful functions and variables
#include "XYmap.h"
// Global variables
boolean effectInit = false; // indicates if a pattern has been recently switched
uint16_t effectDelay = 0; // time between automatic effect changes