Dim jo As JavaObject = PeripheralManager
Log(jo.RunMethod("getPwmList", Null))
Dim pwm As JavaObject = jo.RunMethod("openPwm", Array("PWM0"))
Dim frequency As Double = 240
Dim DutyCycle As Double = 25
pwm.RunMethod("setPwmFrequencyHz", Array(frequency))
pwm.RunMethod("setPwmDutyCycle", Array(dutyCycle))
pwm.RunMethod("setEnabled", Array (True))