Skip to content

Commit

Permalink
Added LED Brightness Adjust (#4105)
Browse files Browse the repository at this point in the history
* Added LED Brightness Adjust

Added a brightness adjustment to allow an aux channel to change brightness.

Tested with SpeedyBeeF7V3. Needs Language Pack Added.

* Update src/js/tabs/adjustments.js

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
  • Loading branch information
jpmreece and haslinghuis authored Dec 23, 2024
1 parent 174534a commit 0bfb0b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2717,6 +2717,9 @@
},
"adjustmentsFunction30": {
"message": "LED Profile Selection"
},
"adjustmentsFunction31": {
"message": "LED Brightness Adjust"
},
"adjustmentsSave": {
"message": "Save"
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/adjustments.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ adjustments.cleanup = function (callback) {

adjustments.adjust_template = function () {
const selectFunction = $('#functionSelectionSelect');
const elementsNumber = 31; // 'LED Profile Select' are the last adjustmentsFunction
const elementsNumber = 32; // 'LED Dimmer' is the last adjustmentsFunction

for (let i = 0; i < elementsNumber; i++) {
selectFunction.append(new Option(i18n.getMessage(`adjustmentsFunction${i}`), i));
Expand Down

0 comments on commit 0bfb0b3

Please sign in to comment.