BPI-M2+ GPIO schematic diagram
it not same as BPI-M1 pin define, I have a GPIO list, as follows
To fit the M2 + GPIO, very simple, just edit gPinToPort and gPinToShift changes into corresponding to M2 + pin.
so you can use it with wiringpi with it.
all test code at here , you can download it and test it.
very thank bluebanboom do this work.