C/C++

BPI M2 ZERO Armbian buster with Linux 5.4.18-sunxi

2 1113
Hello everyone, this is my first post on the forum.
I've recently purchased BananaPi M2 Zero. Unfortunately, I am not able to control GPIOs at all.
I tried WiringBP and also RPi.GPIO_BP but GPIOs still remain silent altough I do not get any
compilation problems.
Has anyone had success with the GPIOs are the latest Armbian?

  1. john@bananapim2zero:~$ gpio mode 0 out
  2. john@bananapim2zero:~$ gpio write 0 1
  3. john@bananapim2zero:~$ gpio readall
  4. +----------+-Rev2-+------+--------+------+-------+
  5. | wiringPi | GPIO | Phys | Name   | Mode | Value |
  6. +----------+------+------+--------+------+-------+
  7. |      0   |  17  |  11  | GPIO 0 | IN   | Low   |
  8. |      1   |  18  |  12  | GPIO 1 | IN   | Low   |
  9. |      2   |  27  |  13  | GPIO 2 | IN   | Low   |
  10. |      3   |  22  |  15  | GPIO 3 | IN   | Low   |
  11. |      4   |  23  |  16  | GPIO 4 | IN   | Low   |
  12. |      5   |  24  |  18  | GPIO 5 | IN   | Low   |
  13. |      6   |  25  |  22  | GPIO 6 | IN   | Low   |
  14. |      7   |   4  |   7  | GPIO 7 | IN   | Low   |
  15. |      8   |   2  |   3  | SDA    | IN   | Low   |
  16. |      9   |   3  |   5  | SCL    | IN   | Low   |
  17. |     10   |   8  |  24  | CE0    | IN   | Low   |
  18. |     11   |   7  |  26  | CE1    | IN   | Low   |
  19. |     12   |  10  |  19  | MOSI   | IN   | Low   |
  20. |     13   |   9  |  21  | MISO   | IN   | Low   |
  21. |     14   |  11  |  23  | SCLK   | IN   | Low   |
  22. |     15   |  14  |   8  | TxD    | IN   | Low   |
  23. |     16   |  15  |  10  | RxD    | IN   | Low   |
  24. |     17   |  28  |   3  | GPIO 8 | IN   | Low   |
  25. |     18   |  29  |   4  | GPIO 9 | IN   | Low   |
  26. |     19   |  30  |   5  | GPIO10 | IN   | Low   |
  27. |     20   |  31  |   6  | GPIO11 | IN   | Low   |
  28. +----------+------+------+--------+------+-------+
  29. john@bananapim2zero:~$
Copy the Code


PS: I design eletronics for living and I am not completely new to python or C.
Best regards, Jiri
I can understand the things that affordable steel bar manufacturers in kerala you are shared here. There are many things that we need to understand in case of using BananaPi M2 Zero. Very clearly you have mentioned the problems, and to control GPIOs I think you need the perfect guidance.

This was a well structured post play bookworm unblocked and I appreciate you for choosing a unique writing style here.

You have to log in before you can reply Login | Sign Up

Points Rules