orangepi-xunlong / wiringOP

wiringPi for Orange Pi
GNU Lesser General Public License v3.0
396 stars 188 forks source link

IC2 Support #18

Closed philbertphotos closed 4 years ago

philbertphotos commented 4 years ago

Will IC2 ever be supported?

leeboby commented 4 years ago

Sure,

https://github.com/orangepi-xunlong/wiringOP/blob/master/examples/oled_demo.c https://github.com/orangepi-xunlong/wiringOP/blob/master/wiringPi/oled.c

can serve as a reference.

In addition, you need to ensure that the image you are using is visible to the i2C device node under /dev.