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(front-leds): diamond: use update_channels to set brightness #161

Draft
wants to merge 19 commits into
base: fouge/zephyr-4.0.0
Choose a base branch
from

Conversation

fouge
Copy link
Collaborator

@fouge fouge commented Jan 17, 2025

apa102 driver with led_strip api doesn't allow to set the brightness byte, only the three RGB values. Use update_channels instead to set LED raw values.
apa102 receives color in that order: ABGR, B and R have to be swapped in
the struct before updating the channels.

fouge added 19 commits January 17, 2025 10:59
update revision in west

Signed-off-by: Cyril Fougeray <[email protected]>
make CMake successfully load

Signed-off-by: Cyril Fougeray <[email protected]>
app is building
still many changes to be made

Signed-off-by: Cyril Fougeray <[email protected]>
with deferred initialization, we can now initialize
devices at runtime.
I2C1 is one that should be postponed until after
the power supplies are initialized and turned on.

Signed-off-by: Cyril Fougeray <[email protected]>
signature changed, now passing pointer, instead of pointer of pointer.

Signed-off-by: Cyril Fougeray <[email protected]>
for main battery

Signed-off-by: Cyril Fougeray <[email protected]>
global CSTD property is deprecated with zephyr 3.7.0.

Signed-off-by: Cyril Fougeray <[email protected]>
ZTEST_NEW_API not a config anymore
fix test compilation and warnings
config MCUBOOT_BOOTLOADER_MODE_SINGLE_APP (one-slot)
config MCUBOOT_GENERATE_UNSIGNED_IMAGE because no signing keys are used
when generating the test binary
add more delay between dfu messages (erasure takes time)

Signed-off-by: Cyril Fougeray <[email protected]>
taken from mcuboot example
debug boot: read flash data, instead of relying on hardcoded values

Signed-off-by: Cyril Fougeray <[email protected]>
redefine M_PI
BUILD_ASSERT must be used instead of static_assert

Signed-off-by: Cyril Fougeray <[email protected]>
was enabled as long as `watchdog0` was an existing label.
now, kconfig has to be enabled

Signed-off-by: Cyril Fougeray <[email protected]>
use sys_init to initialize watchdog
callback cannot be set dynamically anymore, but weakly defined instead
so that it can be overridden by user at compile time.

Signed-off-by: Cyril Fougeray <[email protected]>
fix the generation of proto files.

cmake from orb-messages library is requesting to be linked into target.
Plus, use target defined in zephyr cmake as a dependency.

Signed-off-by: Cyril Fougeray <[email protected]>
don't use `orb/public`

was not causing issues so far but zephyr_module.py changed and isn't
able to find the project repo for zephyr.meta generation

it's important to note that this is only when the repo is used alone,
without it's `private` counterpart.

Signed-off-by: Cyril Fougeray <[email protected]>
when found, the cmake package `McuPrivate` is used to load custom
configs.
Allow a single point of entry for private configs, which is simpler to
maintain and understand.

Signed-off-by: Cyril Fougeray <[email protected]>
internal routing is now set in specific drivers that we don't use, as we
use the adc drivers to get vbat, vref and die temperature.
so we need so hardcode the configuration.

Signed-off-by: Cyril Fougeray <[email protected]>
disable formatter for CMakeLists.txt
rename dts.overlay to app.overlay
copy-pasted all files from original project
encryption enabled in release builds only

Signed-off-by: Cyril Fougeray <[email protected]>
with fixes
watchdog can be initialized only once, by our libray
adc node property: <SYNC> became "SYNC"

Signed-off-by: Cyril Fougeray <[email protected]>
apa102 driver with led_strip api doesn't allow to set the brightness
byte, only the three RGB values. Use `update_channels` instead to set
LED raw values.
apa102 receives color in that order: ABGR, B and R have to be swapped in
 the struct before updating the channels.

Signed-off-by: Cyril Fougeray <[email protected]>
@fouge fouge marked this pull request as draft January 17, 2025 10:14
@fouge fouge force-pushed the fouge/zephyr-4.0.0 branch 4 times, most recently from 99386b2 to 5ac56e1 Compare January 21, 2025 13:10
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.

1 participant