Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import io.github.rowak.Aurora;
- import io.github.rowak.Panel;
- public class SimplePanelTest
- {
- public static void main(String[] args) throws Exception
- {
- // Create a new aurora object to interact with the physical aurora
- Aurora aurora = new Aurora("YOUR_AURORA_IP", 16021,
- "v1", "YOUR_API_KEY");
- // Get an array of all the panels
- Panel[] panels = aurora.panelLayout().getPanels();
- // Set the color of the first panel in the array to red
- aurora.effects().setPanelColor(panels[0], 255, 0, 0, 20);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement