Socket
Book a DemoInstallSign in
Socket

aura-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aura-sdk

ASUS's Aura Sync Node.js bindings

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
3
-62.5%
Maintainers
1
Weekly downloads
 
Created
Source

aura-sdk

ASUS Aura's SDK Nodejs C++ bindings. This package provides an high-level API to manage your rig led show!

Usage

You have to create an instance of the SDK, and then create an instanace for each device. This examples creates an RGB stepper

const { sleep } = require('./sleep')
const { AuraSDK } = require('..')

const auraSDK = new AuraSDK()

async function main() {
  const mbController = auraSDK.createMbController()
  const gpuController = auraSDK.createGPUController()
  const dramController = auraSDK.createDramController()

  while (true) {
    for(let i = 0; i < 360; i++) {
      mbController.setAllColorNow(`hsl(${i}, 100%, 50%)`)
      gpuController.setAllColorNow(`hsl(${i}, 100%, 50%)`)
      dramController.setAllColorNow(`hsl(${i}, 100%, 50%)`)
      await sleep(50)
    }
  }
}

main()
  .catch(err => console.error(err))

API

AuraSDK

This is the main SDK entrypoint. It creates instances for the different devices types.

  • AuraSDK#createMbController(): Creates an instance of the motherboard controller
  • AuraSDK#createGPUController(): Creates an instance of the GPU controller
  • AuraSDK#createDramController(): Creates an instance of the DRAM controller

Controller

  • Controller.joinControllers(controllers: Controller[]): Joins multiple controllers into one array of callable functions. See the the example for usage.
  • Controller#getLedCount(): Get number of controllable leds in this controller.
  • Controller#getDeviceName(): Get the device name (motherboard, GPU, DRAM).
  • Controller#setColor(index: number, color: string): Get the device name (motherboard, GPU, DRAM).
  • Controller#setAllColor(color: string): Sets the color of all the leds in the controller.
  • Controller#setColorNow(index: number, color: string): Sets the color of the LED at the given index and immediately updates them.
  • Controller#setAllColorNow(color: string): Sets the color of all the leds in the controller and immediately updates them.
  • Controller#updateColor(): Updates the LEDs attached to the controller to reflect the current state.

Keywords

ASUS

FAQs

Package last updated on 30 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.