orangepi-xunlong / wiringOP

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

Use proper i2c port on OrangePI #19

Open Sonic-Amiga opened 4 years ago

Sonic-Amiga commented 4 years ago

OrangePI uses /dev/i2c-0, handle this correctly

Signed-off-by: Pavel Fedin pavel_Fedin@mail.ru

Sonic-Amiga commented 4 years ago

Hello everyone! Today i've upgraded OS on my OrangePi One-based smart home controller and also updated WiringPI to the last version. Previously this repository didn't exist, so i used this version: https://github.com/zhaolei/WiringOP . It also uses /dev/i2c-0 on OrangePI and i can confirm that it works. Please consider this fix. Also i think it is worth to mention in your README that pin numbers are incompatible with old version. This surprised me, i've spent some time to figure this out.