Guest User

Untitled

a guest
Jan 13th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  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. });
Add Comment
Please, Sign In to add comment