SHARE
TWEET

Nanoleaf Aurora (Java) Simple Example

a guest Jan 18th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top