Commit Graph

10 Commits

Author SHA1 Message Date
Thomas Kohler 865e724af0
Build(v2): revert move to v2 subfolder (#932)
* revert move to v2 subfolder
* fix CI and adjust CHANGELOG
2023-05-29 19:23:28 +02:00
Thomas Kohler d908619462
Build(v2): fix usage by moving code to a v2 subfolder (#927) 2023-05-22 19:35:36 +02:00
Thomas Kohler fdf4f4b194
Bugfix/Improvement: Introduce SpiBusAdaptor and spi.Driver for composition in platforms/drivers
and fix for #794
2022-12-17 11:56:11 +01:00
Eithel 6bf5b3a532 #700 - Avoid to close the connection.
Each spi drivers must not close the connection: it's not its responsibility.
Robots should close the connection.

Signed-off-by: Eithel <tux.eithel@gmail.com>
2020-01-14 07:27:23 +01:00
Erwan Morvan d73466a5f9 Apa102 use default brightness (#671)
* spi/apa102: use uint8 type with a max of 31 for brightness

Signed-off-by: Erwan Morvan <air1bzz@gmail.com>
2019-05-31 11:34:00 +02:00
Ron Evans ee68549f94 spi: correct param used for APA102 Draw() method
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2019-05-22 11:34:39 +02:00
Mike Zange 78ec92af7a Stop using Red parameter for brightness value
This change corrects using Red parameter of RGBA for the Brightness value, to using the Alpha parameter of RGBA.

As the brightness max value for APA102 is `31` the `math.Min` stops the driver from using any value higher than 31.
2019-05-22 11:34:39 +02:00
Ron Evans 25930107fd spi: add optional params such as bus/chip to all current drivers
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-12 12:25:39 +02:00
Ron Evans 7637d90440 spi: switch to using periph.io for SPI interfaces
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-12 12:25:39 +02:00
deadprogram 71ca8ed02f apa102: adding initial support for APA102 LEDs, thanks to code sample from @rakyll
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-12-13 14:12:30 +01:00