Replies: 1 comment
-
Not a bug. You are resetting the PWM too often. Call once you need to change the value, not in a loop |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, there.
I found a bug from core 2.0.9 to now.
in the code, if remark Serial.println(), analogWrite() will not working.
Thanks for reading.
`
const byte MotorA1 = 32;
const byte MotorA2 = 33;
void setup() {
pinMode(MotorA1,OUTPUT);
pinMode(MotorA2,OUTPUT);
Serial.begin(9600);
}
void loop() {
//Serial.println();
analogWrite(MotorA1, 127); //255 duty cycle 100%
analogWrite(MotorA2, 0);
}
`
Beta Was this translation helpful? Give feedback.
All reactions