BPI-M2 Zero, unable to change mode of GPIO Pins

Hi, my first post here!

I’m just learning about the BPI-M2 Zero and want to control LEDs with the GPIO Pins and python. I have successfully done this on a RPi Zero W with no issues.

I’m running Armbian_20.02.4_Bananapim2zero_buster_current_5.4.18_desktop on two BPI-M2 Zero.

I have installed the RPi.GPIO from https://github.com/BPI-SINOVOIP/RPi.GPIO with no errors and also installed BPI-WiringPi2.

Scripts to change the mode of a pin and flash an LED don’t have any effect on either BPI zeros. All pins are in the ‘IN’ mode and I can’t change them.

Also on one of my BPI-M2 Zero, the BCM pint number is in the hundreds 276, 251 etc which seems wrong?

Any help would be very much appreciate! Thank you!

1 Like

Not sure if this wiringpi works on modern kernel … check this:

and here

Hi Colin, I’m configuring and using my GPIO PIN via shell commands on my bpi zero and it works. Your BMC values looks wrong. So I tried to install the RPi.GPIO on my 20.05.02 buster version but my bpi zero is not found, I get these errors: pi@bpizero1:~$ gpio -v gpio version: 2.26 Copyright © 2012-2015 Gordon Henderson This is free software with ABSOLUTELY NO WARRANTY. For details type: gpio -warranty

Unable to determine hardware version. I see: Hardware : Allwinner sun8i Family ,

    • expecting BCM2708 or BCM2709. Please report this to [email protected]* pi@bpizero1:~$ gpip readall

So I can’t check the BMC values on my board. Please how did you install the RPi.GPIO on your bpi zero ?

I’ve also installed the BPI-Wirering-PI2 same problem, but on my bpi M1 I fount the BMC colume named as CPU with the right values.

Regards Wolfgang

1 Like

Be completely sure everything is confidential! Each order is kept private, and communication always stays anonymous. Download and remove your copy from the database if you want to. https://www.capstoneproject.net/

Our company is proud to employ on the best, https://www.paraphrasingserviceuk.com/ most qualified writers. And we are dedicated to providing you with good value for money.You can buy essay papers cheap (or as cheap as possible while maintaining a legit, reliable service) and still have some spare cash left over to go the student bar tonight!

hello friend seeing your post if it is a problem but if you are interested and successfully installed the gpio pins in the m2z banana pi here I leave my post so you can review it