Hardware Reference
In-Depth Information
Figure 3-12.
The duty cycle represents how much time the pin is turned on
over the course of an entire on-off cycle.
However, not all pins on the Galileo are capable of being pulsed with PWM. If
you look at the board, you'll see a few digital pins marked with a tilde (
~
), as
shown in
Figure 3-13
. These are the pins that you can use with
analog
Write()
. On the Galileo, these are digital pins 3, 5, 6, 9, 10, and 11.
Now let's take a look at the
analogWrite()
function itself and then try to put
it to use.