FRC7153 / 2023-Charged-Up

Official code for the 2023 FRC season, Charged Up!
Other
2 stars 0 forks source link

TODO: lights #5

Open chargedpika opened 1 year ago

chargedpika commented 1 year ago
  1. connect lights
  2. connect lights to battery readout and change colors according to remaining battery percentage
  3. Or connect lights to time remaining in the game
  4. Or connect lights to just be team colored
  5. Or manually controlled
  6. just hook up the lights damn it

IMPORTANT NOTE FROM https://docs.wpilib.org/en/stable/docs/software/can-devices/power-distribution-module.html “Warning

To enable voltage and current logging in the Driver Station, the CAN ID for the CTRE Power Distribution Panel must be 0, and for the REV Power Distribution Hub it must be 1.”

chargedpika commented 1 year ago

Option 1) team colored lights https://github.com/FRC-Sonic-Squirrels/MinibotCode/blob/BlinkinTest/src/main/java/frc/robot/subsystems/blinkin.java

Mind you: “page 4, indicates that the Blinkin can control via the AddressableLED interface the 5V LED WS2812 strips; but not 12v“

chargedpika commented 1 year ago

Option 2) battery colored lights https://docs.wpilib.org/en/stable/docs/software/hardware-apis/misc/addressable-leds.html

Wip: (https://github.com/chargedpika/pastebin/blob/main/batteryLights.java)