-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
179 additions
and
93 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
#include <Adafruit_NeoPixel.h> | ||
#pragma once | ||
#include <Adafruit_NeoPixel.h> | ||
|
||
class Led{ | ||
public: | ||
Led(int ledPixels,int ledPin); | ||
Adafruit_NeoPixel leds; | ||
void All(unsigned int r, unsigned int g, unsigned int b); | ||
}; | ||
extern Adafruit_NeoPixel leds; | ||
void ledAll(unsigned int r,unsigned int g,unsigned int b); | ||
void ledPC(uint pixels,uint r,uint g,uint b); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#include "led.h" | ||
|
||
Led::Led(int ledPixels,int ledPin){ | ||
Adafruit_NeoPixel leds(ledPixels, ledPin, NEO_GRB + NEO_KHZ800); | ||
void ledAll(unsigned int r,unsigned int g,unsigned int b){ | ||
leds.fill(leds.Color(r,g,b)); | ||
leds.show(); | ||
} | ||
|
||
void Led::All(unsigned int r, unsigned int g, unsigned int b){ | ||
leds.fill(leds.Color(r,g,b)); | ||
void ledPC(uint pixels,uint r,uint g,uint b){ | ||
leds.setPixelColor(pixels,leds.Color(r,g,b)); | ||
leds.show(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters