mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #20731 from chrysn-pull-requests/ws281x-saul-write
drivers/ws281x: Fix SAUL writes
This commit is contained in:
commit
a62f10f7e3
@ -33,11 +33,10 @@ static int set_rgb_led(const void *dev, const phydat_t *res)
|
||||
.b = res->val[2]
|
||||
};
|
||||
for (unsigned idx = 0; idx < ws281x->params.numof; idx++) {
|
||||
puts("Setting LED");
|
||||
ws281x_set(ws281x, idx, color);
|
||||
}
|
||||
ws281x_write(ws281x);
|
||||
return 1;
|
||||
return 3;
|
||||
}
|
||||
|
||||
const saul_driver_t ws281x_saul_driver = {
|
||||
|
Loading…
Reference in New Issue
Block a user