Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 2.01 KB

README.md

File metadata and controls

45 lines (26 loc) · 2.01 KB

Banana Pi LED test

Initial wiring test for the Banana Pi (BPI-M1).

Motivation

In contrast to the Raspberry Pi the Banana Pi does wiring internally a little bit different when it comes to things like GPIO, SPI, PWM and things like that. So we have to check out how this works first: We use switching on and off a LED for that.

Sidenote

By replacing wiringBP by wiringPi it can be used for Raspberry Pi too (not tested).

References

Connecting the LED

Be sure to use a resistor and also connect the correct side of the LED (long lead) to +.


(copyright notice: the image was taken from www.evilmadscientist.com)

Resistor tables

Pins


(copyright notice: the image was taken from lemaker homepage)

Compile and install wiringBP library and tools

Clone the repository and run ./build. This installs includes and library in /usr/local/include and /usr/local/lib.

Compile and install

Go to the source directory and use the mighty force of shining CMake :D to compile the pico project.
The wiringPi sub folder contains the internal interface library for the installed wiringBP library.

(I used Armbian stretch on the Banana Pi but also more recent versions should work).