Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var wii = require( '../build/default/nodewii.node' );
- var wiimote = new wii.WiiMote();
- wiimote.connect( '00:14:AB:39:42:B1', function( err ) {
- console.log( err );
- wiimote.rumble( true );
- setTimeout(function() { wiimote.rumble( false ); }, 1000);
- wiimote.ext( true );
- wiimote.on( 'nunchuk', function( err, data ) {
- console.log( data );
- });
- });
Add Comment
Please, Sign In to add comment