Fixed my own screw up on CollisionMatrix testing
This commit is contained in:
@@ -7,7 +7,7 @@ Tested
|
|||||||
- AlternateStrip
|
- AlternateStrip
|
||||||
- AlternateMatrix
|
- AlternateMatrix
|
||||||
- CollisionStrip
|
- CollisionStrip
|
||||||
- CollisionMatrix (BROKEN!!!)
|
- CollisionMatrix
|
||||||
|
|
||||||
|
|
||||||
*I need to write something here*
|
*I need to write something here*
|
||||||
|
|||||||
11
src/main.cpp
11
src/main.cpp
@@ -64,10 +64,10 @@ void setup() {
|
|||||||
animation = new CollisionStrip(hal, "Collision Strip", 150, CRGB::Orange, CRGB::Green);
|
animation = new CollisionStrip(hal, "Collision Strip", 150, CRGB::Orange, CRGB::Green);
|
||||||
animation->enable();
|
animation->enable();
|
||||||
|
|
||||||
animationMatrix = new CollisionMatrix(hal2D, "Collision Matrix", 150, CRGB::Orange, CRGB::Green, CollisionType::HORIZONTAL_COLLISION);
|
animationMatrix = new CollisionMatrix(lm1, "Collision Matrix", 1000, CRGB::Orange, CRGB::Green, CollisionType::HORIZONTAL_COLLISION);
|
||||||
animationMatrix->enable();
|
animationMatrix->enable();
|
||||||
|
|
||||||
animationMatrix2 = new CollisionMatrix(hal2D, "Collision Matrix 2", 150, CRGB::Orange, CRGB::Green, CollisionType::VERTICAL_COLLISION);
|
animationMatrix2 = new CollisionMatrix(lm2, "Collision Matrix 2", 1000, CRGB::Orange, CRGB::Green, CollisionType::VERTICAL_COLLISION);
|
||||||
animationMatrix2->enable();
|
animationMatrix2->enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,6 +80,13 @@ void loop() {
|
|||||||
animationMatrix->update();
|
animationMatrix->update();
|
||||||
animationMatrix2->update();
|
animationMatrix2->update();
|
||||||
|
|
||||||
|
/*for(uint16_t i = 0; i < WIDTH * HEIGHT; i++) {
|
||||||
|
hal2D->setColor(i, CRGB::Red);
|
||||||
|
delay(1000);
|
||||||
|
hal2D->requestShow();
|
||||||
|
hal2D->show();
|
||||||
|
}*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
for(uint8_t i = 0; i < HEIGHT; i++) {
|
for(uint8_t i = 0; i < HEIGHT; i++) {
|
||||||
hal2D->drawFastHLine(0, i, WIDTH, rainbow[(i + shiftNumber) % 6]);
|
hal2D->drawFastHLine(0, i, WIDTH, rainbow[(i + shiftNumber) % 6]);
|
||||||
|
|||||||
Reference in New Issue
Block a user