zephyr/samples/drivers/pwm/fade_led
Baohong Liu 0273ddff24 samples: pwm: use new API and add fade led app
Add a new pwm app (fade led) using the new API.

Following the recent pwm RFC, all existing APIs will
be deprecated. Two new APIs will be added. The changes
for the new APIs and the required driver function have
been posted.

To demonstrate the usage of the new PWM APIs, this app
to fade led is added. It will use the new API pwm_pin_
set_usec().

This app will be located in a new sub directory.

Jira: ZEP-745 ZEP-1029

Change-Id: I8d929a21f7de88307c47b52f98f131e00b2fdbe7
Signed-off-by: Baohong Liu <baohong.liu@intel.com>
2016-10-31 20:01:28 +00:00
..
src samples: pwm: use new API and add fade led app 2016-10-31 20:01:28 +00:00
Makefile samples: pwm: use new API and add fade led app 2016-10-31 20:01:28 +00:00
README samples: pwm: use new API and add fade led app 2016-10-31 20:01:28 +00:00
prj.conf samples: pwm: use new API and add fade led app 2016-10-31 20:01:28 +00:00
testcase.ini samples: pwm: use new API and add fade led app 2016-10-31 20:01:28 +00:00

README

This is a sample app which fades a LED using PWM.

The LED will start from dark and increases its
brightness gradually for 10 seconds. Then, the
brightness reduces gradually for 10 seconds and
finally the LED becomes dark again. The LED will
repeat this cycle for ever.

Arduino 101 and Quark D2000 CRB
===========
You will need to connect the LED to ground and PWM0 via
the shield. You may need a current limiting resistor. See
your LED datasheet.