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;
Raspberry Pi update
Make sure your Raspberry Pi box up-to-date;
sudo apt-get update sudo apt-get upgrade
sudo apt-get install mono-complete
Install git client;
sudo apt-get install git-core
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
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 v22.214.171.124 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.
We Are Hiring!
The software development and maintenance process requires hard work. We are always looking for great engineers to join us and help! Feel free to check out our Careers page for job opportunities!