Jon Trulson
dc93fb11ff
otp538u: some fixes to get working on the Arduino 101 with Firmata
...
There are some issues using this device on the 101 with Firmata:
1. You cannot use any other ADC resolution than 1024. By default the
driver would try to set 12b resolution for improved accuracy. Doing
this on the 101 yielded nonsensical readings causing the driver to
fail. Using 10b resolution will yield less accuracy, but at least the
driver will function.
2. After the first ADC read, and for some time period after, the MRAA
aio_read() calls will always return 0. This would cause an exception
to be thrown by the driver since this is an invalid reading. Now, we
do an analog read on each channel and sleep for .5 seconds in the ctor
to get around this problem. It is a hack and should be properly fixed
somewhere else (firmata? MRAA?).
Some code was reworked/renamed to make it more clear what is actually
going on. In addition a setDebug() method was added to enable some
debugging output.
Signed-off-by: Jon Trulson <jtrulson@ics.com>
2016-08-16 11:22:43 -06:00
..
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2015-03-20 17:08:03 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-07-06 15:13:00 -06:00
2016-07-06 15:13:00 -06:00
2016-07-06 15:13:00 -06:00
2016-07-06 15:13:00 -06:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 16:40:18 -07:00
2016-04-28 14:00:54 -07:00
2016-07-22 16:30:25 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-06-14 16:40:21 -06:00
2016-06-14 16:40:21 -06:00
2016-05-09 13:16:30 -07:00
2016-06-14 16:40:21 -06:00
2016-06-14 16:40:21 -06:00
2016-04-28 14:00:54 -07:00
2016-06-14 16:40:21 -06:00
2016-05-09 13:16:30 -07:00
2016-04-28 14:00:54 -07:00
2016-06-14 16:40:21 -06:00
2016-05-09 13:33:11 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-08-09 16:03:42 -06:00
2016-04-28 14:00:54 -07:00
2016-03-24 13:13:29 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-05-02 16:05:20 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-29 16:46:03 -07:00
2016-06-14 17:00:00 -06:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 16:40:18 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-07-12 17:42:01 -06:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-05-09 13:24:51 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 16:40:18 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-06-30 14:57:19 -07:00
2016-08-09 16:03:42 -06:00
2016-06-30 14:57:19 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-07-12 17:42:01 -06:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-08-04 17:12:10 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-08-16 11:22:43 -06:00
2016-07-06 15:13:00 -06:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-05-09 13:24:51 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-07-12 17:42:01 -06:00
2016-04-28 14:00:54 -07:00
2016-04-28 16:40:18 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-06-14 17:04:17 -06:00
2016-04-28 14:00:54 -07:00
2016-06-14 17:12:32 -06:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-07-12 17:42:01 -06:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-07-06 15:13:00 -06:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-19 15:38:48 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00
2016-04-28 14:00:54 -07:00