From 291413fbebf89c26049c537ac88cd0a816b9d6d8 Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Tue, 1 Oct 2024 02:53:45 +0200 Subject: [PATCH] Flashy lights tester --- TestJig/src/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/TestJig/src/main.cpp b/TestJig/src/main.cpp index 4b619a2..612ffc2 100644 --- a/TestJig/src/main.cpp +++ b/TestJig/src/main.cpp @@ -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);