0.0.0 • Published 5 years ago

wiinode v0.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

wiinode

A node library for the Nintendo® Wii Remote (Wiimote), using node-hid.

Installation

npm install --save wiinode

Getting started

First, connect the Wiimotes to your computer.

Imports:

import { findRemotes, Remote } from 'wiinode';

Then call findRemotes to get a list of Wiimotes. You get Remote objects.

On the Remote object:

  • Use on to register a button event listener (press or release).
  • Read the properties to get button, accelerate, and/or IR camera data.
  • Use rumble, setLed, or setLeds to write to the Wiimote.

More examples to follow...

See the wonderful WiiBrew Wiki for more technical details.

Contribute

Do you have suggestions, ideas, or even code? Please contact me at http://thomasjacob.de/footer/contact.