Tell me how to do analogWrite correctly? I use simple code, but it does not work, the LED just turns on and off:
Code: Select all
const int thisPin = PC13;
void setup() {
pinMode(thisPin, OUTPUT);
}
void loop() {
for (int brightness = 0; brightness < 65536; brightness++) {
analogWrite(thisPin, brightness);
delay(10);
}
}