How to enable I2C and GPIO on Android

Figure I2CM_ A interface. The code is available by default.


VIM4:/ # i2cdetect -l
i2c-3   i2c             Meson I2C adapter                       I2C Adapter
i2c-1   i2c             Meson I2C adapter                       I2C Adapter
i2c-6   i2c             Meson I2C adapter                       I2C Adapter
i2c-2   i2c             Meson I2C adapter                       I2C Adapter
i2c-0   i2c             Meson I2C adapter                       I2C Adapter
i2c-5   i2c             Meson I2C adapter                       I2C Adapter
VIM4:/ #
VIM4:/ # i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
VIM4:/ #

Please refer to this link for modification.

1 Like