I got the internet connection working, but then I discovered I can't use PWM on the Huzzah board? I tried the following code, but the numbers in analogWrite() are ignored. It seems PWM is not available?
I studied the diagrams of the board but there is no mention of PWM. If the "squiggly lines" mean PWM, then all the GPIO pins should support PWM?
My code:
Code: Select all
void setup() {
pinMode(15, OUTPUT);
}
void loop() {
for (int brightness = 0; brightness < 255; brightness++) {
analogWrite(15, brightness);
delay(1);
}
}
Erik.