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 is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 2865 on Sun Nov 10, 2019 5:27 am

Users browsing this forum: No registered users and 1 guest