ok here my code:
#include "stdafx.h"
#using <system.dll>
using namespace std;
using namespace System;
using namespace System::IO;
using namespace System::IO::Ports;
int _tmain(int argc, _TCHAR* argv[])
{
array<Byte>^ serialBytes = gcnew array<Byte>(4);
serialBytes[0] = 0x84; // Command byte: Set Target.
serialBytes[1] = 0x00; // First data byte holds channel number.
serialBytes[2] = 0x70; // Second byte holds the lower 7 bits of target.
serialBytes[3] = 0x2E; // Third data byte holds the bits 7-13 of target.
SerialPort^ test = gcnew SerialPort(L"COM3",9600);
test->Open();
test->Write(serialBytes, 0, 4);
test->Close();
return 0;
}
i choose COM3, because in the Hardware-Manager (from Windows) it shows me that this is the USB-Servo Controller Command Port. COM4 would be the TTL Port. My servo is at channel 0.
i changed the value of the servo to 1800 in the Controll Center. Then i changed the Controller to USB Dual Port and then i closed the Maestro Controll Center.
When i run my Programm the green LED flashes again, but the servo does not move.
