daily pastebin goal
74%
SHARE
TWEET

Untitled

a guest Jan 13th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var wii = require( '../build/default/nodewii.node' );
  2.  
  3. var wiimote = new wii.WiiMote();
  4.  
  5. wiimote.connect( '00:14:AB:39:42:B1', function( err ) {
  6.   console.log( err );
  7.   wiimote.rumble( true );
  8.   setTimeout(function() { wiimote.rumble( false ); }, 1000);
  9.  
  10.   wiimote.ext( true );
  11.   wiimote.on( 'nunchuk', function( err, data ) {
  12.     console.log( data );
  13.   });
  14. });
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