Reply To: Problem while setting up MonoBrick

HomeForumsMonoBrick Communication LibraryProblem while setting up MonoBrickReply To: Problem while setting up MonoBrick

#4469
Author Image
ramacc0 .
Participant

Hi,

I figured last night that you have to use the standard firmware (read it somewhere on this forum). So, after downloading the testprogram again, I tried to run it via usb, but I got exact the same error message.

I used this program and in the attachement you can see the imported files in Xamarin Studio

using System;
using MonoBrick.EV3;

namespace ev3
{
class MainClass
{
public static void Main (string[] args)
{

var ev3 = new Brick<Sensor,Sensor,Sensor,Sensor>(“usb”);

try{
ev3.Connection.Open();
ev3.MotorA.On(50);
System.Threading.Thread.Sleep(3000);
ev3.MotorA.Off();
}
catch(Exception e){
Console.WriteLine(e.StackTrace);
Console.WriteLine(“Error: ” + e.Message”);
Console.WriteLine(“Press any key to end…”);
Console.ReadKey();
}
finally{
ev3.Connection.Close();
}
}
}
}

Also, what is it easier to develop with the custom firmware? Or is it not necessary to use the custom firmware when trying to progam as efficient as possible?

Hope you can help me.

Regards,
Ramacco

Attachments:
You must be logged in to view attached files.
Posted in

Make a donation