Skip to content

Commit

Permalink
Make room for another LED, use DX constants for pins
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Mar 26, 2018
1 parent 3f4299a commit f546cf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Binary file modified blinkenlights/board.fzz
Binary file not shown.
10 changes: 5 additions & 5 deletions blinkenlights/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <Arduino.h>
#include <SPI.h>

#define LED1 5
#define LED2 4
#define BUTTON 12
#define LED1 D1
#define LED2 D2
#define BUTTON D6

void setup() {

Expand All @@ -35,9 +35,9 @@ void loop() {

bool clicked = digitalRead(BUTTON);
if ( clicked ) {
digitalWrite(LED2, HIGH);
} else {
digitalWrite(LED2, LOW);
} else {
digitalWrite(LED2, HIGH);
}

delay(500);
Expand Down

0 comments on commit f546cf6

Please sign in to comment.