Skip to content

Commit

Permalink
Various cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
c0de-fox committed Jul 25, 2018
1 parent 284d974 commit b9e9e11
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions FIRMWARE/pixo-display/pixo-display-helper.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@
* Note that this does not interact with the MPU
*/

#include <Wire.h> // For I2C communication
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_DotStarMatrix.h>
#include <Adafruit_DotStar.h>
#include <ArduinoJson.h>
#include "pixols.h"

uint32_t prevTime = 0;

#define DATAPIN 19
#define CLOCKPIN 18
#define BRIGHTNESS 15
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -265,5 +261,6 @@ void loop() {
randChangePxl(twitter, ig, 1000, 20);
notifyScrollPxl(upvote, 1000, 2);
notifyPopupPxl(glogo, 1000);
notify
notifyBlinkPxl(wifi, 1000, 3);

}

0 comments on commit b9e9e11

Please sign in to comment.