Go to the documentation of this file.00001 #ifndef LED_H
00002 #define LED_H
00003 #include <stdint.h>
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 typedef enum {
00025 RED0=0, YELLOW0=1, GREEN0=2, BLUE0=3,
00026 RED1=4, YELLOW1=5, GREEN1=6, BLUE1=7
00027 } LED;
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 int8_t sb_led_on(LED led);
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 int8_t sb_led_off(LED led);
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 int8_t sb_led_toggle(LED led);
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073 int8_t sb_led_show_level(uint8_t level, uint8_t max);
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083 void sb_led_set_all_leds(uint8_t setting);
00084
00085
00086
00087 #endif
00088