netdurino Go and PWM
Started by LakeOzark, Dec 25 2012 03:09 AM
2 replies to this topic
#1
Posted 25 December 2012 - 03:09 AM
I have downloaded four different PWM programs and have problems with all.
Here are some of the problems.
PWM pwm = new PWM(Pins. GPIO_PIN_D5); error cant find this GPIO_PIN_D5
pwm.SetDutyCycle(50); error cant find this SetDutyCycle
pwm.SetPulse(period, duration); error cant find this SetPulse(period, duration
ShieldBase shieldbase = new ShieldBase((GoBus.GoSocket) 5); error cant find this ShieldBase
I have tried adding the references. No help.
What am I doing wrong.
#2
Posted 25 December 2012 - 04:03 AM
Hi LakeOzark,
.NET Micro Framework has new classes for PWM. The new class is "Microsoft.SPOT.Hardware.PWM".
You'll pass the channel (PWMChannels.PWM_PIN_D##) into your construction along with the desired initial settings...and then call PWM.Start() to start the PWM clock.
http://msdn.microsof...y/hh401130.aspx
Does that get you pointed in the right direction?
Chris
- BlackLamb likes this
#3
Posted 03 January 2013 - 08:37 PM Best Answer
Good This is answered
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users