Artemis Development with the Arduino IDE
Contributors:
santaimpersonator, Liquid Soulder, Member #1571936
PWM: AnalogWrite
The PWM pins are useful for controlling servos or emulating an analog voltage functionality. To get started, we have provided a built-in example for the Apollo3 core. From the file drop-down menu: File > Examples > Apollo3 > AnalogWrite.
Built-in
AnalogWrite
example for the Apollo3 core. (Click to enlarge) Operation
This example is very fundamental and should result in the LED dimming/fading on and off. Follow the steps for programming the associated board to see the code in action.
The brightness of the LED should cycle, fading in and out. (Click to enlarge)