Witmotion addon for OpenFrameworks
Development Support and special thanks Qaotech Studio
Ported from the official documentation example C++ code https://github.com/WITMOTION/BWT901CL
ofApp.h
witmotionController wmc;
ofApp.cpp
// in ofApp::setup()
wmc.setup();
wmc.connectDevice(int DEVICE_ID);
// in ofApp::update()
wmc.update();
wmc.getAcceleration();
wmc.getGyro();
wmc.getAngle();
wmc.getMagneticField();