wire library endTransmission() still not working with Due


i have read posts endtransmission() returning non-zero on successful transmits. supposed have been fixed in arduino 1.5.7.
i testing tinyrtc board. i2c scanner relies upon wire.endtransmission()  returns 2 (nack) rtc address (0x68).
however, if use rtcdue library not use wire, can access , read rtc.
my conclusion wire still not fixed due.

any help? make extensive use of i2c , working wire library due.

i discovered rtclib assumes connection second i2c port on due, without giving option port connected to. once sorted out, works expected.

#ifdef __avr__
#include <avr/pgmspace.h>
#define wire wire
#else
#define progmem
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#define wire wire // wire1  --- have change wire1  wire use standard i2c port on due
#endif



Arduino Forum > Products > Arduino Due (Moderator: fabioc84) > wire library endTransmission() still not working with Due


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support