OrangePiLibra / WiringPi

The WiringPi on OrangePi
GNU Lesser General Public License v3.0
58 stars 29 forks source link

Read full 32bits at correct GPIO address and correct some pin mappings. #6

Open ashdriver opened 6 years ago

ashdriver commented 6 years ago

This change is for the Orange Pi 2G IOT. Previously the GPIO registers were being dereferenced as 8bit instead of 32 bit values, so only lines 0-7 were accessable. Also many pin mappings were incorrect. Bank 3, GPIOD (pins 96-127) still has an issue I think. I haven't tested all pins on other buses either, but this is a definite improvement on what was there before.