I have the delay set to zero. Was wondering about removing the “clear()” was going to test what happened if I commented it out.
#include <Adafruit_NeoPixel.h>
#include <Wire.h>
//#include <WireUpdate.h>
//#include <OneWire.h>
//#include <DallasTemperature.h>
//#include <RTClib.h>
#include <math.h>
#define PIN 5
#define TEMPSENSOR 4
#define NOSETCLOCK
#define BUZZER 12
#define ROWS 14
#define COLS 150
#define WIDTH 5
#define HEIGHT 7
#define SPEED 0
int index1 = 0;
const int LENGTH = COLS*ROWS;
//CONVERT MATRIX TO INDEX
//prog[r_,c_,cc_]:=2cc-2+r+2(cc-1)Floor[(r-1)/2]+c*(1-2Mod[r,2])
//RTC_DS3231 rtc;
Adafruit_NeoPixel strip = Adafruit_NeoPixel(LENGTH, PIN, NEO_RGB+NEO_KHZ800);
//OneWire oneWire(TEMPSENSOR);
//DallasTemperature sensors(&oneWire);
// BEGIN QLOCK SETTINGS ###############################
const uint32_t color = strip.Color(0, 0, 255);
const uint32_t white = strip.Color(255, 255, 255);
// jump in code
#define MAXLEN 18
#define MAXPHRASES 5
int phrases = 1;
int phrase;
//char string[MAXPHRASES][MAXLEN] = {"rabbits for sale"};
char string[MAXPHRASES][MAXLEN] = {"abba abba baab"};
byte len[MAXPHRASES] = {16};
// END QLOCK SETTINGS #################################
long lastMinSet=millis();
boolean colorStatus=false;
const int adc_address=41; // I2C Address
char keyboard_data[80]; // Array to store keyboard values
int getIndex(int r, int c) {
if (r >= ROWS || c >= COLS || r < 0 || c < 0) {return -1;}
//c = COLS-c-1;
//r = ROWS-r-1;
return (2*COLS)-2+r+(2*(COLS-1)*floor((r-1)/2.0))+(c*(1-2*(r%2)));
}
keep running into size limit. below is the code that is called by the switch in main loop
void letter(const boolean arr[HEIGHT][WIDTH], int org) {
int eeyore = 0;
if (-org > WIDTH*2) return;
if (org > COLS) return;
for (int x=0; x<HEIGHT; x++) {
for (int y=0; y<WIDTH; y++) {
//Serial.print("result getIndex = ");
//strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x, 2*y+org), (255, 255, 255));
//strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x+1, 2*y+org), (255, 255, 255));
//strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x+1, 2*y+1+org), (255, 255, 255));
//strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x, 2*y+1+org), (255, 255, 255));
//strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x, 2*y+org), pgm_read_dword((arr[x][y]?color:strip.Color(0, 0, 0))));
//strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x+1, 2*y+org), pgm_read_dword((arr[x][y]?color:strip.Color(0, 0, 0))));
//strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x+1, 2*y+1+org), pgm_read_dword((arr[x][y]?color:strip.Color(0, 0, 0))));
//strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x, 2*y+1+org), pgm_read_dword((arr[x][y]?color:strip.Color(0, 0, 0))));
strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x, 2*y+org), (arr[x][y]?color:strip.Color(0, 0, 0)));
strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x+1, 2*y+org), (arr[x][y]?color:strip.Color(0, 0, 0)));
strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x+1, 2*y+1+org), (arr[x][y]?color:strip.Color(0, 0, 0)));
strip.setPixelColor(getIndex(ROWS-2*HEIGHT+2*x, 2*y+1+org), (arr[x][y]?color:strip.Color(0, 0, 0)));
}
}
}