refactoring
This commit is contained in:
@@ -16,26 +16,12 @@
|
||||
#define PANEL_PIXEL_COUNT 16
|
||||
#define PANEL_COUNT 3
|
||||
#define NUMPIXELS PANEL_PIXEL_COUNT*PANEL_PIXEL_COUNT*PANEL_COUNT
|
||||
#define TEXT_BUFFOR_SIZE 64
|
||||
|
||||
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
|
||||
|
||||
ScrollableTextData scrollableTexts[4] = {0};
|
||||
unsigned char scrollableTextsCount = 0;
|
||||
char rightTextBuffor[TEXT_BUFFOR_SIZE] = {0};
|
||||
|
||||
|
||||
|
||||
void writeSmallScrollabreTextInBuffor(char (*text)[TEXT_BUFFOR_SIZE + 1], pos_y = 0) {
|
||||
for (unsigned char i = 0; i < TEXT_BUFFOR_SIZE; i++) {
|
||||
if (text[i]) {
|
||||
unsigned char text_iterator
|
||||
while()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user