问题
Why different boards have different GPIO names in Android Things?
For example, in Raspberry PI 3, there are BCM6
, while Intel Edison with the Arduino breakout has IO12
, IO13
, etc.
回答1:
GPIO (and other peripheral port handle) are named after the SOC/SOM documentation for each supported board.
Boards like the Edison Arduino breakout or the Sparkfun Edison Pi block have the same pin name directly on their silk screen.
When this information is missing, you can consult the pinout reference in the reference documentation:
- Intel Edison Arduino
- Intel Edison Sparkfun Pi block
- Pico i.MX6UL
- Raspberry Pi 3
Or popular online references like https://pinout.xyz
来源:https://stackoverflow.com/questions/41127202/android-things-pin-naming-convention