-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat(flex-stacker): Bring up the internal/external status led bars and add gcode to control them. #495
Conversation
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.
lgtm, though you might want something where you can set channels numerically for testing
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.
Implementation looks good to me.
Can we disable setting the color to red when there's an error/a stall for now (so it doesn't do that for slas)?
Sounds good, will add in a follow-up pr. |
Overview
The Flex stacker has 2 status-led strips of 4 LEDs each for 8, a is31FL3209 drives each strip-led driver. Each LED status bar can be addressed via I2C on addresses 0x6C for the internal strip and 0x6F for the external strip. This pull request brings up the i2c communication and uses the is31FL3209_driver.hpp and adds a
ui_task.hpp
that drives the heartbeat status led as well as the status bar state and controls.Closes: EXEC-956
gcode SetStatusBarColor (M200) format
Change log
i2c::hardware::I2C
classUIPolicy
class to provide i2c comms and heartbeat LED toggles to theUITask
UITask
class which is responsible for managing and controlling the heartbeat led on the board and the status bars.SetStatusBarColor
(M200) gcode that can set one or all status bar leds and powerTesting
SetStatusBarColor
(M200) gcode.Reviewer Request
Anything I'm missing?