Open altdaps opened 1 year ago
It's not explained, but there is a define statement which controls whether the slave functions are enabled:
CTWI_ENABLE_SLAVE_MODE
: https://github.com/nitacku/nI2C/blob/master/nTWI.h#L29
Simply uncomment this line to enable slave mode.
Thanks.
Arduino IDE 1.8.9, board mega2560
C:\Program Files (x86)\Arduino\libraries\nI2C\nTWI.cpp: In member function 'void CTWI::InterruptHandler()':
C:\Program Files (x86)\Arduino\libraries\nI2C\nTWI.cpp:598:9: warning: attributes at the beginning of statement are ignored [-Wattributes]
C:\Users\SONY\AppData\Local\Temp\cc9495FG.ltrans0.ltrans.o: In function `main':