ARM Shanghai IoT Team (Internal) / Mbed 2 deprecated PwmOutDemo_JacobShi

Dependencies:   mbed

Fork of PwmOut_HelloWorld by Mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 /*****************************************
00002 *File:breathing led
00003 *Creator:JacobShi
00004 *Time:2014/10/17
00005 *Description: use the pwm mode to make
00006 *a breathing led.
00007 ******************************************/
00008 #include "mbed.h"
00009 PwmOut led(LED1);
00010 int main() {
00011    led.period(1);
00012    led.pulsewidth(0.5);
00013     while(1) 
00014     {
00015  
00016     }
00017 }