我试图移植一些代码到AndroidThings。目前它使用“GPIO 3(SCL)”作为Raspberry Pi上的引脚。 https://github.com/mattdh666/rpi-led-matrix-panel/blob/master/RgbMatrix.h#L206移植AndroidThings的外设 - 引脚选择
但是在AndroidThings相同的引脚是“I2C1(SCL)”,所以我不能用peripheralManService.openGpio("BCM3")
see here for Pinout diagram
try {
gpioSerialClock = service.openGpio("BCM3"); // Throws Caused by: android.os.ServiceSpecificException: Unknown I/O name BCM3
} catch (IOException e) {
throw new IllegalStateException(e);
}
我应该将我的线使用的树莓派另一个引脚被标记引用它为GPIO?是否有任何后果:/我的外设需要使用BCM3,因为它是串行时钟
如果需要选择的引脚的一些更直观的解释: