I would like to connect Raspberry Pi running Android things with Arduino Nano by I2C. The official Android documentation says:
Managing the slave device connection
Is there a way to act Arduino as a master and Raspberry with Android things to act as a slave?
On Arduino side there is onRequest or onReceive callbacks available with Wire library but I don't se any callbacks with Peripherial I/O API on Android side.
Is there any solution or just use on Android side a simple loop to read from Arduino register regardless if there is a change or not. Thanks