Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_DISCO_F746NG_patch_fixed LCD_DISCO_F746NG TS_DISCO_F746NG FATFileSystem TinyJpgDec_interwork mbed-src
LED.h
00001 #ifndef __LED_h 00002 #define __LED_h 00003 00004 #define COLOR_CREATE(_RED_,_GREEN_,_BLUE_,_WHITE_) (_RED_ | (_GREEN_ << 8) | (_BLUE_ << 16) | (_WHITE_ <<24)) 00005 #define COLOR_RED(_COLOR_) (_COLOR_ & 0xFF) 00006 #define COLOR_GREEN(_COLOR_) ((_COLOR_ >> 8) & 0xFF) 00007 #define COLOR_BLUE(_COLOR_) ((_COLOR_ >> 16) & 0xFF) 00008 #define COLOR_WHITE(_COLOR_) ((_COLOR_ >> 24) & 0xFF) 00009 00010 typedef enum 00011 { 00012 LAE_NONE, 00013 LAE_WAKEUP, 00014 LAE_OFF, 00015 00016 } LED_ANIMATION_ENUM; 00017 00018 void LED_Init(void); 00019 void LED_StartAnimation(LED_ANIMATION_ENUM animation); 00020 void LED_SetColor(int32_t color); 00021 00022 #endif
Generated on Tue Jul 12 2022 21:40:04 by
1.7.2