Home English RPI.GPIO library gets an update

RPI.GPIO library gets an update

by Fatih Boy
0 comment

Since it’s my open source weekend, I’ve had some time to upgrade Enterprisecoding RPI.GPIO library. Latest nuget package can be found on nuget package gallery.

As you known, the library is based on wiringPi API, which get updated over time and it seems that backward compatibility isn’t on TOP 10 list of Gordon. Enumeration values like Maker, Model, Version changed, as well as, Memory values now enumerated.

Enterprisecoding RPI.GPIO version 1.1 is  modified for wiringPi version 2.32. Please find installation steps below;

Installing Pre-Requests

Raspberry Pi update

Make sure your Raspberry Pi box up-to-date;

sudo apt-get update
sudo apt-get upgrade

Install Mono

Install mono-complete;

sudo apt-get install mono-complete

Git Client

Install git client;

sudo apt-get install git-core

Wiring Pi

Most recent versions of Raspbian comes with pre-installed wiring pi library. If you don’t have it installed, follow the steps below;

clone latest version of wiringPi;

git clone git://git.drogon.net/wiringPi

build and install Wiring Pi;

cd wiringPi
./build

In order to work with the library you should create shared libraries;

cc -shared wiringPi.o -o libwiringPi.so
cc -shared wiringPiI2C.o -o libwiringPiI2C.so
cc -shared wiringPiSPI.o -o libwiringPiSPI.so

RPI.GPIO Compile

clone latest version of RPI.GPIO;

git clone https://github.com/fatihboy/RPI.GPIO.git

Compile the solution;

cd RPI.GPIO/
MONO_IOMAP=case xbuild /p:Configuration=Release Enterprisecoding.RPI.GPIO.sln

Run test application;

cd Enterprisecoding.RPI.GPIO.LedTest/bin/Release/
sudo mono Enterprisecoding.RPI.GPIO.LedTest.exe

which outputs following lines on my Raspberry Pi 3;

Enterprisecoding Raspberry Pi GPIO Library v1.0.0.0
Copyright (c) 2014-2016 Fatih Boy
This is free software with ABSOLUTELY NO WARRANTY.

Raspberry Pi Details:
  Type: Model P3, Revision: 1.2, Memory: 1024MB, Maker: SONY

Looping Pin 0...

Note That; sample application will loop through pin 0. Turns On & Off.

Şu Yazıları da Sevebilirsiniz

Leave a Comment

* Bu formu kullanarak, verilerinizin bu web sitesi tarafından saklanması ve kullanılmasını kabul ediyorsunuz.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Bu web sitesi deneyiminizi geliştirmek için çerezleri kullanır. Bunu kabul ettiğinizi varsayacağız, ancak isterseniz vazgeçebilirsiniz. Kabul Et Daha Fazla Bilgi