From b9e9e11ff4d928debf572fc77a5a6f006c18180e Mon Sep 17 00:00:00 2001 From: "David Todd (c0de)" Date: Tue, 24 Jul 2018 21:28:58 -0500 Subject: [PATCH] Various cleanup --- FIRMWARE/pixo-display/pixo-display-helper.ino | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/FIRMWARE/pixo-display/pixo-display-helper.ino b/FIRMWARE/pixo-display/pixo-display-helper.ino index 4875ae5..be68c42 100644 --- a/FIRMWARE/pixo-display/pixo-display-helper.ino +++ b/FIRMWARE/pixo-display/pixo-display-helper.ino @@ -9,16 +9,12 @@ * Note that this does not interact with the MPU */ -#include // For I2C communication -#include #include #include #include #include #include "pixols.h" -uint32_t prevTime = 0; - #define DATAPIN 19 #define CLOCKPIN 18 #define BRIGHTNESS 15 @@ -159,12 +155,12 @@ void notifyScrollPxl(int pxl[TOTALPXLS][3], int dlytime, int loops=0) { /* * notifyBlinkPxl, flash a Pixol on screen repeatedly * args: - * - pxl[256][3] - Standard Pixol image, displayed all at once + * - pxl[TOTALPXLS][3] - Standard Pixol image, displayed all at once * - dlytime - The amount of time (in ms) to keep the image on the display * - loops (optional) - The total amount of times this should blink * - color (optional) - Whether or not to set the active pixel's color to its stored value */ -void notifyBlinkPxl(int pxl[256][3], int dlytime, int loops=0, bool color=false) { +void notifyBlinkPxl(int pxl[TOTALPXLS][3], int dlytime, int loops=0, bool color=false) { for (int i = 0; i <= loops; i++) { showPxl(pxl, dlytime, color); showPxl(darkness, dlytime, color); @@ -265,5 +261,6 @@ void loop() { randChangePxl(twitter, ig, 1000, 20); notifyScrollPxl(upvote, 1000, 2); notifyPopupPxl(glogo, 1000); - notify + notifyBlinkPxl(wifi, 1000, 3); + } \ No newline at end of file