1
2
您可以在两者之间设置GPIO连接 https://developer.android.com/things/sdk/pio/gpio.html#input-state 当AndroidThings板有数据要读取时,让arduino“ping”该板。 然后AndroidThings板可以使用I2C在该点进行读取 https://developer.android.com/things/reference/com/google/android/things/pio/I2cDevice.html#read(byte[],%20int) (比轮询循环更好) |
2
0
似乎没有办法将Raspberry Pi与Android事物一起用作I2C从机,但您可以使用各种解决方法: 1) 通过其他接口(UART或SPI)将Arduino主机连接到Raspberry Pi,以进行寄存器数据交换; 2) 使用其他Arduino从设备,通过I2C连接到目标Arduino主设备,通过UART/SPI连接到Raspberry Pi; 3) 通过GPIO实现自定义逐位数据传输; 等 |
Franta123456 · 如何将以前的值存储到数组中 6 年前 |
peter · 休眠函数,但不阻止其他函数和代码 6 年前 |
Daniel · python和arduino之间的串行通信 6 年前 |
Peter S · Arduino数组中的值已损坏 6 年前 |
Robin · Python串行速度慢 6 年前 |
TheBezwet · Arduino中字符串到Int的转换 6 年前 |
Cammack · 使用指针将变量用作类变量调用的*部分* 6 年前 |