Changed Dashboard code. Implemented 3 LED brightness modes (brightness levels in header file), cycled through by LED dimmer button. Lowered brightness of seven segment through pseudo PWM. Cycled between on and off at high frequency.
Testing Description
Cycled through dimmer modes using a timer, and examined the effect on backup dashboard. Initially tested on dimmable lights, then tested 7 segment PWMing. There was a limit to how fast 7 segment can be switched on and off, so used mills() instead of micros().
Additional Information
Used mills() function because there's a limit to how fast you can switch 7 segment on and off.
Checklist
[ ] Is this code linked to a new board or board rev?
[ ] Is there a PR for that board in circuits-2024? If so, please pause until that PR is merged.
[ ] If you made a change or addition or deletion to the CAN library, did you inform the Data Aq lead?
[X] Did you test the code in real-world conditions before submitting?
[X] Did you use CPU Speed = 720 MHz (overclock) and Optimize = Fastest when testing with Teensy 4.x?
[X] Did you use CPU Speed = 144 MHz (overclock) and Optimize = Fastest with LTO when testing with Teensy 3.5?
[X] Did you use CPU Speed = 120 MHz (overclock) and Optimize = Fastest with LTO when testing with Teensy 3.2?
[X] Did you use Teensyduino 1.56 with Arduino 1.8.19 when testing with the latest libraries from main?
[X] Did you pull main into your branch?
[X] Did you check for merge conflicts?
[X] Did you resolve any that occurred? If you are having trouble or are confused, contact a lead!
[X] Did you fill out the above template?
[x] Did you assign the right people for review (on the right)?
Pull Request (PR) into Code-2024
Code Description
Changed Dashboard code. Implemented 3 LED brightness modes (brightness levels in header file), cycled through by LED dimmer button. Lowered brightness of seven segment through pseudo PWM. Cycled between on and off at high frequency.
Testing Description
Cycled through dimmer modes using a timer, and examined the effect on backup dashboard. Initially tested on dimmable lights, then tested 7 segment PWMing. There was a limit to how fast 7 segment can be switched on and off, so used mills() instead of micros().
Additional Information
Used mills() function because there's a limit to how fast you can switch 7 segment on and off.
Checklist
circuits-2024
? If so, please pause until that PR is merged.main
?main
into your branch?