43 lines
844 B
Arduino
43 lines
844 B
Arduino
#include <Adafruit_NeoPixel.h>
|
|
#include <WiFi.h>
|
|
#include <WebServer.h>
|
|
#include <ArduinoJson.h>
|
|
#include "index.h"
|
|
#include "fonts.h"
|
|
#include "cursor.h"
|
|
#include "lowLevel.ino"
|
|
|
|
#ifdef __AVR__
|
|
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket
|
|
#endif
|
|
|
|
#define PIN 12
|
|
|
|
#define PANEL_PIXEL_COUNT 16
|
|
#define PANEL_COUNT 3
|
|
#define NUMPIXELS PANEL_PIXEL_COUNT*PANEL_PIXEL_COUNT*PANEL_COUNT
|
|
|
|
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
|
|
|
|
|
|
|
|
|
|
void setup() {
|
|
Serial.begin(115200);
|
|
|
|
pixels.begin();
|
|
pixels.clear();
|
|
|
|
drawCharacter(font7x5['P' - '!'], 7, 5, 0x00030100);
|
|
drawCharacter(font7x5['T' - '!'], 7, 5, 0x00030100);
|
|
drawCharacter(font7x5['I' - '!'], 7, 5, 0x00030100);
|
|
|
|
pixels.show();
|
|
start_server();
|
|
}
|
|
|
|
void loop() {
|
|
shiftGivenRectangle(0, 0, 19, 7, 1);
|
|
pixels.show();
|
|
handle_server();
|
|
} |