Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard -- PWM 7 Segment and Brightness Modes #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rsandhuny
Copy link

@rsandhuny rsandhuny commented Oct 15, 2023

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

  • 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?
  • Did you test the code in real-world conditions before submitting?
    • Did you use CPU Speed = 720 MHz (overclock) and Optimize = Fastest when testing with Teensy 4.x?
    • Did you use CPU Speed = 144 MHz (overclock) and Optimize = Fastest with LTO when testing with Teensy 3.5?
    • Did you use CPU Speed = 120 MHz (overclock) and Optimize = Fastest with LTO when testing with Teensy 3.2?
    • Did you use Teensyduino 1.56 with Arduino 1.8.19 when testing with the latest libraries from main?
  • Did you pull main into your branch?
    • Did you check for merge conflicts?
    • Did you resolve any that occurred? If you are having trouble or are confused, contact a lead!
  • Did you fill out the above template?
  • Did you assign the right people for review (on the right)?

Implemented 3 LED brightness modes, cycled through by LED dimmer button. Lowered brightness of seven segment by cycling on and off based on brightness mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant