Open chargedpika opened 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“
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)
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.”