Power & Source of Big Ideas

Has anyone used Mono on the FE boards ?

Moderators: chensy, FATechsupport

I discovered Mono yesterday. I think this would be a great way to develop on my NanoPi Duo.

I installed it and tried all the examples and it worked just fine.
Now, the only thing that has be puzzled is how to use C# to gain access to the I/O pins on the Duo.
Has anyone here had any experience with Mono and GPIO ? Specifically, I would like to learn how to do SPI, I2C and general GPIO settings like inputs and outputs and toggle I/O pins.

you can try installing wiringNP
and then use the Process class to run the gpio command

Code: Select all

Process proc = new Process();
proc.StartInfo = new ProcessStartInfo("gpio", "mode 0 out");
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.UseShellExecute = false;

where 0 is the pin number

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 102 on Mon Oct 08, 2018 12:42 pm

Users browsing this forum: No registered users and 2 guests