1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-02 22:17:12 +08:00

7 Commits

Author SHA1 Message Date
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