Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using all PWM channels at the same time does not work #1

Open
Spacely70 opened this issue Sep 29, 2015 · 2 comments
Open

using all PWM channels at the same time does not work #1

Spacely70 opened this issue Sep 29, 2015 · 2 comments

Comments

@Spacely70
Copy link

Hi,

i've written this code to test the simultaneous use of the four PWM channels on the WiFimini:

void setup()
{
// put your setup code here, to run once:
pinMode(6, OUTPUT);
pinMode(5, OUTPUT);
pinMode(14, OUTPUT);
pinMode(15, OUTPUT);
}

void loop()
{
// put your main code here, to run repeatedly:
int i=0;
for (i=0; i <= 255; i++){
analogWrite(6,i);
analogWrite(5,i);
analogWrite(14,i);
analogWrite(15,i);
delay(10);
}
}

On my board the 3rd and 4th PWM seems to have a glitch...
When some value below approx. 250 is written to PWM on pin 15 the PWM signal on pin 14 is gone
And when the value is above this value, the PWM on pin 14 is simply switched to high-

Can you confirm that?

@Cheong2K
Copy link
Contributor

Cheong2K commented Jan 6, 2016

Hi, should be fixed, right? Can I close this?

@Spacely70
Copy link
Author

Hi Cheong,
sure...now it's running perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants