The lwadc example demonstrates how to read converted values from analogue inputs using lwadc api.

There is just one task (test task) which first calls monitor_potentiometer() function (only if the board features a potentiometer connected to an analogue input).
After monitor_potentiometer() returns, function monitor_all_inputs() is called. The function then runs in a loop displaying values on inputs defined in adc_inputs[] table indefinitely.