adafruit / Adafruit_WICED_Arduino

Adafruit WICED Feather Arduino BSP
https://www.adafruit.com/products/3056
27 stars 19 forks source link

Add I2C/Wire .endTransmission(bool) #36

Closed microbuilder closed 8 years ago

microbuilder commented 8 years ago

Re this thread, the Maple I2C drivers seem to be missing the 'bool' override for .endTransmission in the Wire library: https://forums.adafruit.com/viewtopic.php?f=57&t=93496&p=470758#p470758

As described here this should have an alternative override to indicate if we want to send the STOP condition or not: https://www.arduino.cc/en/Reference/WireEndTransmission

Cross reference the Zero Wire.h file here: https://github.com/arduino/ArduinoCore-samd/blob/master/libraries/Wire/Wire.h#L44

hathach commented 8 years ago

Added the function to fix build error. Added the multiple message with repeated START is easy with native mcu code, but it is kind of awkward with current Arduino WireBase wrapper. We will implement it later if this has issue with any sensor device.

hathach commented 8 years ago

37