True leaf photo frame,gesture sensing APDS9960,motor fan,color LED
Dependencies: SFE_APDS9960 mbed
Diff: led.cpp
- Revision:
- 0:9b48e23879b3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/led.cpp Tue Apr 19 08:04:51 2016 +0000 @@ -0,0 +1,20 @@ +#include<mbed.h> + +DigitalOut LED_R(P0_20); +DigitalOut LED_B(P0_19); + +void Led_Blink(void) +{ + LED_R=0; + LED_B=1; + wait_ms(500); + LED_R=1; + LED_B=0; + wait_ms(500); + LED_R=1; + LED_B=1; + wait_ms(500); + LED_R=0; + LED_B=0; + wait_ms(500); +} \ No newline at end of file