Advertisement
Guest User

Nanoleaf Aurora (Java) Simple Example

a guest
Jan 18th, 2019
586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. import io.github.rowak.Aurora;
  2. import io.github.rowak.Panel;
  3.  
  4. public class SimplePanelTest
  5. {
  6.     public static void main(String[] args) throws Exception
  7.     {
  8.         // Create a new aurora object to interact with the physical aurora
  9.         Aurora aurora = new Aurora("YOUR_AURORA_IP", 16021,
  10.                 "v1", "YOUR_API_KEY");
  11.         // Get an array of all the panels
  12.         Panel[] panels = aurora.panelLayout().getPanels();
  13.         // Set the color of the first panel in the array to red
  14.         aurora.effects().setPanelColor(panels[0], 255, 0, 0, 20);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement