Exemplo n.º 1
0
Arquivo: UArm.cs Projeto: AshleyF/uarm
 public void Connect()
 {
     _reflecta = new ReflectaClient(_port);
     _reflecta.ErrorReceived += (_, e) => Console.WriteLine($@"Error: {e.Message}");
     _compiler.Reset();
     _compiler.Instruction("attach", 103);
     _compiler.Instruction("detach", 104);
     _compiler.Instruction("xyz!!", 110);
     _compiler.Instruction("rtz!!", 113);
     Exec(500, "(reset)");
     Exec(100, "attach");
 }
Exemplo n.º 2
0
Arquivo: UArm.cs Projeto: AshleyF/uarm
 public void Disconnect()
 {
     Exec(100, "detach");
     _reflecta.Dispose();
     _reflecta = null;
 }