Main Site Documentation

PWM_8 on G120


#1

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


#2

You can use cast:

(Cpu.PWMChannel)8

#3

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


#4

There are 12 PWMs on G120.


#5

oops. misread the analog input count