Write analog values to an analog output pin to form a sawtooth wave. Connect a LED to the analog output pin and watch the brightness of the LED change.
The source code can also be found on Github in the examples/analog_write
folder.
Build and upload the application.
$ cd examples/analog_write
$ make -s BOARD=<board> upload