-
Notifications
You must be signed in to change notification settings - Fork 6
LEDs
Note: This wiki page is still WIP and is untested! Do not take anything in this page for fact before it has been tested.
LED Objects can be used with the AddressableLED class in the edu.wpi.first.wpilibj package.
AddressableLED constructor : public AddressableLED(int port)
In order to actually modify the LEDs, you will need to use the AddressableLEDBuffer object found in the same package.
AddressableLEDBuffer constructor : public AddressableLEDBuffer(int length)
Note that length actually refers to the amount of "pixels" in the LED display.
Then, you need to set the length (amount of pixels) of your AddressableLED object using the respective setLength method.
AddressableLED led = new AddressableLED(0);
AddressableLEDBuffer ledBuffer = new AddressableLEDBuffer(300); // The WS2812B model LED, in this case, has 300 pixels.
led.setLength(ledBuffer.getLength());
LEDs are very cool. 👍👍👍
This is an officially licensed product of Team 4026. Decatur Robotics 2024 is not sponsored by any other Team, and is not responsible for any damages caused by using this product or trusting the programming team, which is by far the least most trustworthy team(Shadow owen money gang, we love coding the robot). By using this product, you are consenting to your information, and thus your identity to be stolen and first-born child taken.
- Editing Documentation & Markdown Syntax
- Code Team to-do List
- Code Standards
- Common Library Structure
- Interfaces
- General Setup
- Branching System
- How to Create Pull Requests
- How to Switch Branches
- Code Reviews
- Reverting Commits
- Singleton Pattern
- Software Installations
- Necessary IntelliJ Plugins
- Vendordeps
- Setting Up New Projects
- Autoformatter Set Up
- Showbot Requirements
- Autonomous
- Calling a Command Based on a Button Press
- CAN
- Clearing Sticky Faults
- Current Limits
- PID Config and Usage
- Robot.java, TeleopInit, DisabledInit
- RoboRio Ports
- SetDefaultCommand
- Wait for Time
- SlewRateLimiter
- LEDs
- InstantCommand
- PhotonVision
- Apriltags
- Camera Display on Shuffleboard
- Object Detection
- Raspberry Pi
- Network Tables
- List of Network Tables (2023)
Up to date as of SJ2, end of 2023 season