first upload
This commit is contained in:
commit
64c8e88536
8 files changed
+275
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#include "SevenSegmentNeoPixel.h"
|
||||
|
||||
#define DIGITS 4
|
||||
#define PIXELS_PER_SEGMENT 7
|
||||
#define PIN 0
|
||||
|
||||
SevenSegmentNeoPixel display(DIGITS, PIXELS_PER_SEGMENT, PIN);
|
||||
|
||||
void setup() {
|
||||
display.begin();
|
||||
display.setBrightness(50);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
for (uint8_t d = 0; d < DIGITS; ++d) {
|
||||
display.setDigit(d, d, display.getStrip().Color(255, 0, 0)); // Show digit index in red
|
||||
}
|
||||
display.show();
|
||||
delay(1000);
|
||||
display.clear();
|
||||
display.show();
|
||||
delay(500);
|
||||
}
|
||||
Reference in new issue
Block a user