-
Notifications
You must be signed in to change notification settings - Fork 126
Feature/ws2812 led #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
doedel123
wants to merge
3
commits into
akdeb:main
Choose a base branch
from
doedel123:feature/ws2812-led
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -107,4 +107,18 @@ openssl s_client -showcerts -connect <your-deno-domain>.deno.dev:443 </dev/null | |
|
||
3. For development, uncomment `#define DEV_MODE` in Config.h to use local servers without SSL. To deploy to production, comment out `#define DEV_MODE` and set the proper server addresses and ports. | ||
|
||
4. To use the button functions, uncomment `#define TOUCH_MODE` in Config.h | ||
4. To use the button functions, uncomment `#define TOUCH_MODE` in Config.h | ||
|
||
|
||
## WS2812 Status LED (NeoPixel) | ||
|
||
This firmware includes support for a single WS2812 (NeoPixel) LED as a system status indicator. | ||
It has been tested on the **Freenove ESP32-S3 Audio Kit**, where the LED is connected to **GPIO48**. | ||
|
||
### Requirements | ||
Add the [Adafruit NeoPixel library](https://github.com/adafruit/Adafruit_NeoPixel) to your `platformio.ini`: | ||
|
||
```ini | ||
lib_deps = | ||
adafruit/Adafruit NeoPixel @ ^1.12.0 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file looks good to me otherwise 👍 |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets add a comment here saying that this repo is compatible with both a common-anode 3 GPIO pin RGB LED and a WS2812 LED. What do you think?
The regular LED is supported in files
RGBHandler.cpp
andRGBHandler.h
and WS2812 inWS2812Handler.cpp
andWS2812Handler.h
.And we can use the existing
LEDHandler.cpp
andLEDHandler.h
for routing to the above RGB vs WS2812 LEDs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add this -->
This repo supports both WS2812 (1-pin) and Common Anode RGB (3-pin) LEDs.
USE_3PIN_LED
inLEDHandler.h
.Files:
RGBLEDHandler.cpp/.h
WS2812Handler.cpp/.h
LEDHandler.cpp/.h
(calls the correct backend automatically)