Skip to content
Fiercest edited this page Feb 29, 2020 · 4 revisions

Welcome to the Asus Aura SDK Java wrapper wiki.

Note: This will only work on a 32bit jvm (as it is pointed to the 32 bit dll).

Class Documentation

See the pages on the right sidebar.

Introduction

The Asus Aura SDK has been moved to a COM Type Library, you may have seen a set of DLLs that no longer work.

This repo is a java wrapper that communicates with the COM objects to control components associated with the Asus Aura SDK. Currently, only lighting zones and devices are supported in the frontend wrapper.

You can communicate directly via the provided COM objects in ca.fiercest.aurasdk.com4j, though the majority of these are not public.

Some devices the SDK works with

  • RAM
  • VGA/GPU
  • Motherboard
  • Motherboard RGB Headers
  • Keyboard
  • Any other Aura compatible device should work

Quick Start Example

import ca.fiercest.aurasdk.AuraRGBLight;
import ca.fiercest.aurasdk.AuraSDK;
import ca.fiercest.aurasdk.AuraSDKDevice;
import ca.fiercest.aurasdk.Color;

public class Quickstart
{
    public static void main(String... args)
    {
        //Create the Aura SDK Object
        AuraSDK sdk = new AuraSDK();

        //Create a custom Color (using ca.fiercest.aurasdk.Color)
        Color myRedColor = new Color(255, 0, 0);

        //Set all device Colors
        sdk.setAllColors(myRedColor);

        for(AuraSDKDevice device : sdk.getDevices())
        {
            //Get the name of the device.
            String deviceName = device.getName();
            //Get all of the light zones for this device.
            List<AuraRGBLight> deviceLightZones = device.getLightZones();
            //Get the amount of light zones from the list size.
            int lightCount = deviceLightZones.size();
            //Print the device info.
            System.out.println("Found Device Name: " + deviceName + ", Light Zones: " + lightCount);

            //Get the first light zone from this device
            AuraRGBLight deviceFirstLight = deviceLightZones.get(0);
            //Set its color
            deviceFirstLight.setColor(new Color(0, 255, 0)); //Green
            //Print the zone name and its color
            System.out.println("Light Zone Name: " + deviceFirstLight.getName() + ", Zone Color: " + deviceFirstLight.getColor());
        }

        //Wait so we can see the effects.
        Thread.sleep(2500);

        //Manually Release Control of the SDK (recommended, but should automatically invoke on shutdown if not done manually).
        sdk.ReleaseControl();
    }
}

Com4j Footnote

Some objects from the package ca.fiercest.aurasdk.com4j are public to be accessed by the frontend wrapper. These are all denoted by I{name} and I do not recommend using them unless you are creating a PR or adding functionality.