Yeah just know it will break if @reconbot ever updates node firmata to use
the firmata parser he wrote.


On Fri, Feb 14, 2014 at 1:44 PM, Nicolas Panel <notifications@github.com>wrote:

> In examples/SimpleEncoderFirmata/SimpleEncoderFirmata.ino:
>
> > + * 6 END_SYSEX                  (0xF7)
> > + * ------------------------------
> -----------------------
> > + *
> > + *  Report encoder's position
> > + * -----------------------------------------------------
> > + * Sysex Query
> > + * ------------------
> > + * 0 START_SYSEX                (0xF0)
> > + * 1 ENCODER_DATA               (0x61)
> > + * 2 ENCODER_REPORT_POSITION    (0x01)
> > + * 3 encoder #                  ([0 - MAX_ENCODERS-1])
> > + * 4 END_SYSEX                  (0xF7)
> > + *--------------------
> > + * MIDI Response
> > + * ------------------
> > + * 0 ENCODER_MESSAGE (0x80) | Channel (encoder #, 0-4)
>
> I first used SYSEX but as you know it requires more bytes (9 instead of
> 6), witch mak a big difference when messages are send every 20ms...
> If you don't mind, i suggest to keep it this way and change it later if it
> is too complicated to maintain.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/firmata/arduino/pull/115/files#r9758890>
> .
>