Skip to content
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

RGB LEDs as state indicators with animations, cup illumination, etc #402

Closed
wants to merge 44 commits into from

Conversation

genkigenki
Copy link
Contributor

@genkigenki genkigenki commented Dec 3, 2023

Added FastLED library, and LED handling for Neopixels with e.g. WS2811 chip.
LoopLED will be called every 20ms for smooth LED animations.
Number of LEDs and chip type is freely configurable.
Library is using Hardware features of ESP32 to avoid interrup conflicts

Heating to setpoint or Standby -> Default: switch all LEDs off
Perfect temp -> Green, one LED in back of machine
Brew/Steam -> Blue (only if configured)
After coffee is brewed -> White light to show ready coffee for 15s
Initialize, cold start Heat up --> Rainbow (only if configured)
Error message: Red heartbeat (Water empty, sensor error, etc) 

- Calling a function to flush OLED display
- In the function: Hooking in to display icons in each display mode

Added FastLED library, and LED handling for 4 Neopixels with WS2811 chip.
LoopLED will be called every 20ms for smooth LED animations.
- Heating to setpoint or Standby -> Default: switch all LEDs off
- Perfect temp -> Green, one LED in back of machine
- Brew/Steam -> Blue
- After coffee is brewed -> White light to show ready coffee for 15s
- Initialize, cold start Heat up --> Rainbow
- Error message: Red heartbeat (Water empty, sensor error, etc)
@LoQue90
Copy link
Member

LoQue90 commented Dec 5, 2023

This also adds all the stuff from your water icon pr.
This PR should only implement your led implementation.
And I would put the led stuff in an own .h file and call it from main.cpp

Copy link
Member

@LoQue90 LoQue90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest STATUS_LED

@genkigenki genkigenki changed the title 4 WS2811 LEDs as state indicators with animations RGB LEDs as state indicators with animations, cup illumination, etc Dec 9, 2023
@genkigenki genkigenki closed this Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants