#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel neo(37, 7, NEO_RGB + NEO_KHZ800);
Adafruit_ILI9341 tft = Adafruit_ILI9341(10, 8, 9);
void setup() {
tft.begin();
neo.begin();
tft.setRotation(4);
tft.fillScreen(ILI9341_WHITE);
tft.setTextColor(ILI9341_BLACK);
tft.setTextSize(3);
tft.setCursor(10, 10);
tft.print("Skuska");
}
void loop() {
for (int i=0; i<37;i++){
neo.clear();
neo.setPixelColor(i, 255, 0, 255);
neo.show();
delay(50);
}
for (int y = 37; y >= 0; y--){
neo.clear();
neo.setPixelColor(y, 255, 0, 255);
neo.show();
delay(50);
}
for (int h = 0; h < 37; h++) {
neo.clear();
if (h % 2 == 0)
neo.setPixelColor(h, 0, 255, 0);
neo.show();
delay(50);
}
for (int j = 37; j >= 0; j--) {
neo.clear();
if (j % 2 == 0)
neo.setPixelColor(j, 0, 255, 0);
neo.show();
delay(50);
}
}