Skip to content

Commit 9d018a7

Browse files
committed
Various cleanup
1 parent b90eba1 commit 9d018a7

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

FIRMWARE/pixo-display/pixo-display-helper.ino

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@
99
* Note that this does not interact with the MPU
1010
*/
1111

12-
#include <Wire.h> // For I2C communication
13-
#include <SPI.h>
1412
#include <Adafruit_GFX.h>
1513
#include <Adafruit_DotStarMatrix.h>
1614
#include <Adafruit_DotStar.h>
1715
#include <ArduinoJson.h>
1816
#include "pixols.h"
1917

20-
uint32_t prevTime = 0;
21-
2218
#define DATAPIN 19
2319
#define CLOCKPIN 18
2420
#define BRIGHTNESS 15
@@ -159,12 +155,12 @@ void notifyScrollPxl(int pxl[TOTALPXLS][3], int dlytime, int loops=0) {
159155
/*
160156
* notifyBlinkPxl, flash a Pixol on screen repeatedly
161157
* args:
162-
* - pxl[256][3] - Standard Pixol image, displayed all at once
158+
* - pxl[TOTALPXLS][3] - Standard Pixol image, displayed all at once
163159
* - dlytime - The amount of time (in ms) to keep the image on the display
164160
* - loops (optional) - The total amount of times this should blink
165161
* - color (optional) - Whether or not to set the active pixel's color to its stored value
166162
*/
167-
void notifyBlinkPxl(int pxl[256][3], int dlytime, int loops=0, bool color=false) {
163+
void notifyBlinkPxl(int pxl[TOTALPXLS][3], int dlytime, int loops=0, bool color=false) {
168164
for (int i = 0; i <= loops; i++) {
169165
showPxl(pxl, dlytime, color);
170166
showPxl(darkness, dlytime, color);
@@ -265,5 +261,6 @@ void loop() {
265261
randChangePxl(twitter, ig, 1000, 20);
266262
notifyScrollPxl(upvote, 1000, 2);
267263
notifyPopupPxl(glogo, 1000);
268-
notify
264+
notifyBlinkPxl(wifi, 1000, 3);
265+
269266
}

0 commit comments

Comments
 (0)