On the Cerbuino be a LED is on pin 13 to ground
I have this code here:
public partial class Program
{
static PWM MyFader = new PWM(Cpu.PWMChannel.PWM_0, 10000, 0.1, false);
void ProgramStarted()
{
Debug.Print("Program Started");
new Thread(ledblink).Start();
}
void ledblink()
{
double i = 0.0;
while (true)
{
MyFader.DutyCycle = i;
MyFader.Start();
if ((i += 0.1) >= 1.0)//increases variable "i" i think
{
i = 0.0;
}
Thread.Sleep(10);
}
}
}
Straight from the pwm documentation basically and ive cycled through every PWM on the Cerbuino bee and I just cant figure this pwm out. I don’t have it hooked up to an external jack and im just trying to power an led right now sothat I can move up to powering a servo and turning it