Read the value of an analog pin periodically once every second and print the read value to standard output.
The source code can also be found on Github in the examples/analog_read
folder.
Build and run the application.
$ cd examples/analog_read
$ make -s BOARD=<board> run
value = 234
value = 249
value = 230