PWM_8 on G120

Hi,

Microsoft provides in "Microsoft.SPOT.Hardware"
Cpu.PWMChannel enumeration only for PWM_0 to PWM_7.

How do I use G120’s PWM_8?

Thanks,
S.B.D

You can use cast:

(Cpu.PWMChannel)8

the g120 has 8 PWM outputs. they are numbered PWM 0…7. the eight port is pwm7.

There are 12 PWMs on G120.

oops. misread the analog input count