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 ComplicatedPanelTest
- {
- 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();
- // Get the panel id of the first panel in the array
- int id = panels[0].getId();
- // Create a static effect that changes the color of the panel to red
- String json = "{"
- + "\"command\":\"display\","
- + "\"animType\":\"static\","
- + "\"animData\":\"1 " + id + " 1 255 0 0 0 20\","
- + "\"loop\":false"
- + "}";
- // Send the effect to the aurora (using the "display" command)
- aurora.effects().writeEffect(json);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement