Flashy lights tester

This commit is contained in:
Greyscale 2024-10-01 02:53:45 +02:00
parent 856cc2e0d2
commit 291413fbeb
Signed by: grey
GPG key ID: DDB392AE64B32D89

View file

@ -8,8 +8,8 @@
#define PIXEL_COUNT 124
#define PIXEL_PIN 16
#define PIXEL_BRIGHTNESS 10
//#define SCREEN_RESET_PIN 22
#define SCREEN_RESET_PIN U8X8_PIN_NONE
#define SCREEN_RESET_PIN 22
//#define SCREEN_RESET_PIN U8X8_PIN_NONE
U8X8_SSD1306_72X40_ER_HW_I2C u8x8(SCREEN_RESET_PIN);
@ -147,24 +147,28 @@ void loop() {
Serial.println("Red...");
all(255,0,0);
u8x8.clearDisplay();
u8x8.drawString(0,0,"Hi pupper!");
u8x8.drawString(0,2,"Red!");
delay(500);
Serial.println("Green...");
all(0,255,0);
u8x8.clearDisplay();
u8x8.drawString(0,0,"Hi pupper!");
u8x8.drawString(0,1,"Green!");
delay(500);
Serial.println("Blue...");
all(0,0,255);
u8x8.clearDisplay();
u8x8.drawString(0,0,"Hi pupper!");
u8x8.drawString(0,4,"Blue!");
delay(500);
Serial.println("Rainbow!");
u8x8.clearDisplay();
u8x8.drawString(0,0,"Hi pupper!");
u8x8.drawString(0,3,"Rainbow!");
rainbow(1);