mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
nunchuck: C port; FTI; C++ wraps C
Some API changes were made as well, see docs/apichanges.md. Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
@ -24,16 +24,8 @@
|
||||
|
||||
var nunchuck_lib = require('jsupm_nunchuck');
|
||||
|
||||
// Instantiate a nunchuck controller bus 0
|
||||
var nunchuck_obj = new nunchuck_lib.NUNCHUCK(0);
|
||||
|
||||
// always do this first
|
||||
console.log("Initializing... ");
|
||||
if (!nunchuck_obj.init())
|
||||
{
|
||||
console.log("nunchuck->init() failed.");
|
||||
process.exit(0);
|
||||
}
|
||||
// Instantiate a nunchuck controller bus 3
|
||||
var nunchuck_obj = new nunchuck_lib.NUNCHUCK(3);
|
||||
|
||||
setInterval(function()
|
||||
{
|
||||
|
Reference in New Issue
Block a user