Code: Select allGT.Socket socket = GT.Socket.GetSocket(socketNumber, true, this, null);
socket.EnsureTypeIsSupported('Y', this);
Cpu.Pin[] pins = socket.CpuPins;
Cpu.Pin pin = pins[3];
uint[] time = new uint[] { 500 * 1000, 500 * 1000 }; // Not Correct for servos
GHI.IO.SignalGenerator servo = new GHI.IO.SignalGenerator(pin, false);
servo.Set(false, time, 0, 10, true);
The time array represents a digital waveform. I have no idea how to represent the appropriate servo signal in a waveform but if I figure it out I will write a driver for this module.