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

feat(flex-stacker): Bring up the internal/external status led bars and add gcode to control them. #495

Merged
merged 12 commits into from
Dec 17, 2024
Prev Previous commit
Next Next commit
lint
vegano1 committed Dec 16, 2024
commit dcca990fbce755fb3ca28cf2ead5428e0cdc32a2
3 changes: 2 additions & 1 deletion stm32-modules/include/flex-stacker/firmware/i2c_comms.hpp
Original file line number Diff line number Diff line change
@@ -19,7 +19,8 @@ class I2C : public I2CBase {
auto operator=(const I2C &) = delete;
auto operator=(const I2C &&) = delete;

auto i2c_read(uint16_t dev_addr, uint16_t reg, uint16_t size) -> RxTxReturn final;
auto i2c_read(uint16_t dev_addr, uint16_t reg, uint16_t size)
-> RxTxReturn final;
auto i2c_write(uint16_t dev_addr, uint16_t reg, uint8_t *data,
uint16_t size) -> RxTxReturn final;
auto set_handle(HAL_I2C_HANDLE i2c_handle, I2C_BUS bus) -> void;
Original file line number Diff line number Diff line change
@@ -206,7 +206,7 @@ class UITask {
if (bar == Internal) {
_led_driver0.set_pwm(power);
return _led_driver0.send_update(*_policy);
}
}
if (bar == External) {
_led_driver1.set_pwm(power);
return _led_driver1.send_update(*_policy);