• Thanks! There's some interesting stuff there. Actually having something like:

    Device.accel.enable();
    Device.accel.on('data', function(xyz) { ... });
    

    Does sound nicer than the current solution of:

    Device.accelOn();
    Device.on('accel', function(xyz) { ... });
    

    Also reporting 'raw' sensor data like Android (as well as processed data in proper units) sounds good.

    I guess one question is whether we artificially split things like the Gyro (which is usually in the same chip as the accelerometer and would give data at the same time) off into their own classes with their own events. I guess it's more flexible, but worse for the programmer.

About

Avatar for Gordon @Gordon started