PWM on G 30

Anyone help getting this PWm to work on a G30 board? Im back with GHI after a long break :slight_smile:

PWM = new PWM(GHI.Pins.G30.PwmOutput.PA8??, 10000, 5000, PWM.ScaleFactor.Microseconds, true); //Cannot find PIN librray of g30
    PWM.Start();

    Com = new SerialPort("COM2", 2400, Parity.Even);
    Com.Open();
    Com.DataReceived += new SerialDataReceivedEventHandler(Com_DataReceived);
    while (true)
    {
        Thread.Sleep(20000);
        EnablePwm(false);
        // DoTest();
        EnablePwm(true);
    }

Itโ€™s probably easier if you just use micro framework with legacy products

PA8 is mapped to pwm channel 0.

It could be:

var freq = 10000;
var duty = 0.5;
var pwmPA8 = new PWM((Cpu.PWMChannel)0, freq , duty , false); 
pwmPA8.Start();

We donโ€™t understand the rest or your code.