Flashy lights tester
This commit is contained in:
parent
856cc2e0d2
commit
291413fbeb
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue