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.
http://www.mono-project.com/

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.

Thanks.
you can try installing wiringNP
and then use the Process class to run the gpio command
eg:

Code: Select all

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

where 0 is the pin number

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 3 guests