Skip to content

Commit 30e081c

Browse files
committed
Revert "rework xymap"
This reverts commit 091bead.
1 parent 091bead commit 30e081c

File tree

3 files changed

+2
-74
lines changed

3 files changed

+2
-74
lines changed

GemmaM0_Band_Jacket/DiscoBandCamp/DiscoBandCamp.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void loop()
9696
}
9797

9898
// run a fade effect too if the confetti or myConfetti is running:
99-
if (effectList[currentEffect] == confetti || effectList[currentEffect] == myConfetti) fadeAll(1);
99+
if (effectList[currentEffect] == confetti or myConfetti) fadeAll(1);
100100

101101
FastLED.show(); // send the contents of the led memory to the LEDs
102102
}

GemmaM0_Band_Jacket/DiscoBandCamp/XYmap.cpp

Lines changed: 0 additions & 53 deletions
This file was deleted.

GemmaM0_Band_Jacket/DiscoBandCamp/XYmap.h

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,15 @@
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

31-
// Parameters for width and height
32-
const uint8_t kMatrixWidth = 24;
33-
const uint8_t kMatrixHeight = 8;
34-
const uint8_t kBorderWidth = 2;
35-
36-
#define NUM_LEDS (kMatrixWidth * kMatrixHeight)
37-
extern CRGB leds[NUM_LEDS];
38-
39-
// XY Function
40-
uint16_t XY(uint16_t x, uint16_t y, uint16_t width, uint16_t height);
41-
42-
// Declare XYMap
43-
extern XYMap myXYMap;
44-
45-
#endif // XYMAP_H
46-
4728
// Parameters for width and height
4829
const uint8_t kMatrixWidth = 24;
4930
const uint8_t kMatrixHeight = 8;
5031
const uint8_t kBorderWidth = 2; //for swirly
5132

5233
#define NUM_LEDS (kMatrixWidth * kMatrixHeight)
53-
extern CRGB leds[ NUM_LEDS ];
34+
CRGB leds[ NUM_LEDS ];
5435

5536
// This function will return the right 'led index number' for
5637
// a given set of X and Y coordinates on DiscoBandCamp

0 commit comments

Comments
 (0)