You shouldn't analogWrite to a pin that is not PWM-capable*
A1 is not PWM-capable
PWM-capable pins are typically marked with a tilde '~'
* well, you can, but it won't do what you want.
You shouldn't analogWrite to a pin that is not PWM-capable*
A1 is not PWM-capable
PWM-capable pins are typically marked with a tilde '~'
* well, you can, but it won't do what you want.