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:
Jon Trulson
2017-01-31 13:06:26 -07:00
parent 1bbb9386b7
commit 0749f130e1
15 changed files with 740 additions and 214 deletions

View File

@ -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()
{