LED Dimmer (#13776)
commitd22d8405c2c04365acb30e8ee226bd7bb71b591f
authorjpmreece <jon@conficio.design>
Mon, 23 Dec 2024 20:28:43 +0000 (23 20:28 +0000)
committerGitHub <noreply@github.com>
Mon, 23 Dec 2024 20:28:43 +0000 (23 21:28 +0100)
treef681a48bd01f2610d9bec6c09cad6b488d3f35c4
parent00bcbdd89706204e59776ab8ed26fced0a19cc18
LED Dimmer (#13776)

* LED Dimmer

Build with EXTRA_FLAGS=-DUSE_LED_STRIP

Tested on SpeedyBeeF7V3

Added adjrange to update the ledstrip_brightness variable. This allows for easy changing of LEDs without having to connect to the configurator.

* Added Unit Tests, Space to Tab

Added unit tests into rx_controls_unittest.cc. The LED brightness is returned as 50 for testing purposes.

Changed tabs in ledstrip.c & .h and rc_adjustments.c to 4 spaces for coding standards.

* Update src/main/fc/rc_adjustments.h

Missed a tab in rc_adjustments.h

Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>
* Update src/main/fc/rc_adjustments.c

Removal of empty line

Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>
* Update rc_adjustments.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* Update src/main/io/ledstrip.c

* Update src/main/io/ledstrip.h

* Update src/test/unit/rc_controls_unittest.cc

---------

Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>
Co-authored-by: Jay Blackman <blckmn@users.noreply.github.com>
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
src/main/fc/rc_adjustments.c
src/main/fc/rc_adjustments.h
src/main/io/ledstrip.c
src/main/io/ledstrip.h
src/test/unit/rc_controls_unittest.cc