0273ddff24
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> |
||
---|---|---|
.. | ||
src | ||
Makefile | ||
README | ||
prj.conf | ||
testcase.ini |
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.