Skip to content

Commit

Permalink
fix up LED presets to work with changes to LED race mode (#427)
Browse files Browse the repository at this point in the history
* fix up LED presets to work with changes to LED race mode

These presets allow you to set your LED colours via your VTX channel and change when you change channel. Behaviour was changed with this pr  betaflight/betaflight#13096 (comment)

* Update LED VTX  race mode.txt

removed warning as its not needed

* Update presets/4.5/leds/quaddiction_tinytrainer.txt
  • Loading branch information
sugaarK authored Dec 2, 2023
1 parent 9f78d60 commit 6d950cd
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 1 deletion.
2 changes: 1 addition & 1 deletion presets/4.4/leds/quaddiction_tinytrainer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#$ AUTHOR: sugarK

#$ DESCRIPTION: Sets LED settings to suit used VTX channels used by the Quaddiction TinyTrainer spec team

#$ WARNING: This preset will not work with HDzero firmware 1.30 or newer

# --- LED Designations ---

Expand Down
74 changes: 74 additions & 0 deletions presets/4.5/leds/LED VTX race mode.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#$ TITLE: RACE mode LED settings
#$ FIRMWARE_VERSION: 4.5
#$ CATEGORY: LEDS
#$ STATUS: OFFICIAL
#$ KEYWORDS: leds, race, vtx, colour change, sugarK, spec, spec racing, tinytrainer
#$ AUTHOR: sugarK

#$ DESCRIPTION: Sets LED settings to change colours when VTX channel is changed.
#$ DESCRIPTION: This preset is required with HDzero VTX firmware 1.30 and above. See BF PR here https://github.com/betaflight/betaflight/pull/13096
#$ DESCRIPTION:


#--- Set up Race mode ---

set ledstrip_profile = RACE
set ledstrip_race_color = BLACK


# --- Set LED ---

#$ OPTION_GROUP BEGIN: Set up number of LEDS

#$ OPTION BEGIN (UNCHECKED): Set 2 LEDs
led 0 2,3::COV:1
led 1 3,3::COV:1
#$ OPTION END

#$ OPTION BEGIN (UNCHECKED): Set 4 LEDs
led 0 2,3::COV:1
led 1 3,3::COV:1
led 2 4,3::COV:1
led 3 5,3::COV:1
#$ OPTION END

#$ OPTION BEGIN (UNCHECKED): Set 8 LEDs
led 0 2,3::COV:1
led 1 3,3::COV:1
led 2 4,3::COV:1
led 3 5,3::COV:1
led 4 6,3::COV:1
led 5 7,3::COV:1
led 6 8,3::COV:1
led 7 7,5::COV:1
#$ OPTION END

#$ OPTION BEGIN (UNCHECKED): Set 8 LEDs
led 0 2,3::COV:1
led 1 3,3::COV:1
led 2 4,3::COV:1
led 3 5,3::COV:1
led 4 6,3::COV:1
led 5 7,3::COV:1
led 6 8,3::COV:1
led 7 7,5::COV:1
#$ OPTION END

#$ OPTION BEGIN (UNCHECKED): Set 16 LEDs
led 0 2,3::COV:1
led 1 3,3::COV:1
led 2 4,3::COV:1
led 4 6,3::COV:1
led 5 7,3::COV:1
led 6 8,3::COV:1
led 7 7,5::COV:1
led 8 8,6::COV:1
led 9 9,7::COV:1
led 10 10,8::COV:1
led 11 11,9::COV:1
led 12 12,10::COV:1
led 13 13,11::COV:1
led 14 14,12::COV:1
led 15 15,13::COV:1
#$ OPTION END
#$ OPTION_GROUP END
69 changes: 69 additions & 0 deletions presets/4.5/leds/quaddiction_tinytrainer.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#$ TITLE: Quaddiction TinyTrainer LED settings
#$ FIRMWARE_VERSION: 4.5
#$ CATEGORY: LEDS
#$ STATUS: OFFICIAL
#$ KEYWORDS: leds, 533, five33, quaddiction, sugarK, spec, spec racing, tinytrainer, tiny
#$ AUTHOR: sugarK

#$ DESCRIPTION: Sets LED settings to suit used VTX channels used by the Quaddiction TinyTrainer spec team
#$ DESCRIPTION: This preset is required with HDzero VTX firmware 1.30 and above. See BF PR here https://github.com/betaflight/betaflight/pull/13096
#$ DESCRIPTION:


#--- Set up Race mode ---

set ledstrip_profile = RACE
set ledstrip_race_color = BLACK


# --- LED Designations ---

led 0 2,3::COV:1
led 1 3,3::COV:1
led 2 4,3::COV:1
led 3 5,3::COV:1
led 4 6,3::COV:1
led 5 7,3::COV:1
led 6 8,3::COV:1
led 7 7,5::COV:1
led 8 8,6::COV:1
led 9 9,7::COV:1
led 10 10,8::COV:1
led 11 11,9::COV:1
led 12 12,10::COV:1
led 13 13,11::COV:1
led 14 14,12::COV:1


# --- Color Tables ---

# color
color 0 0,0,0
# color 1 red (R1) [<=5672]
color 1 0,0,255
# color 2 orange (R2) [>5672<=5711]
color 2 21,0,255
# color 3 green (R3, F1) [>5711<=5750]
color 3 120,0,255
#color 4 cyan (R4, F2, F3) [>5750<=5789]
color 4 180,0,255
# color 5 (not in use)
color 5 0,0,0
# color 6 blue (R5, F4, F5) [>5789<=5829]
color 6 240,0,255
# color 7 (not in use)
color 7 0,0,255
# color 8 (not in use)
color 8 0,0,255
# color 9 (not in use)
color 9 0,0,255
# color 10 purple (R6, F6, F7) [>5829<=5867]
color 10 275,0,255
# color 11 yellow (R7, F8) [>5867<=5906]
color 11 50,0,255
# color 12 (not in use)
color 12 0,0,0
# color 13 pink (R8) [>5906]
color 13 323,0,255
color 14 0,0,0
color 15 0,0,0

0 comments on commit 6d950cd

Please sign in to comment.