Revision 1087
Fixed whitespace at the end of eeprom.h
Implemented binary orb settings
lights.h | ||
---|---|---|
69 | 69 |
/** @brief Turn the orb off (White) **/ |
70 | 70 |
#define ORB_OFF 0xFE //ORB_OFF->WHITE |
71 | 71 |
|
72 |
|
|
73 |
// ***** Initialization ***** |
|
74 |
|
|
72 | 75 |
/** @brief Enables the orbs **/ |
73 | 76 |
void orb_init(void); |
77 |
|
|
78 |
|
|
79 |
// ***** Management ***** |
|
80 |
|
|
81 |
/** @brief Disable the orbs **/ |
|
82 |
void orb_disable(void); |
|
83 |
/** @brief Enable the orbs **/ |
|
84 |
void orb_enable(void); |
|
85 |
|
|
86 |
|
|
87 |
// ***** Setting RGB colors ***** |
|
88 |
|
|
89 |
// FIXME remove |
|
90 |
typedef unsigned char uint8_t; |
|
91 |
|
|
74 | 92 |
/** @brief Set both orbs to a specified color **/ |
75 |
void orb_set(unsigned char red_led, unsigned char green_led,
|
|
76 |
unsigned char blue_led); |
|
93 |
void orb_set(uint8_t red, uint8_t green, uint8_t blue);
|
|
94 |
|
|
77 | 95 |
/** @brief Set orb1 to a specified color **/ |
78 |
void orb1_set(unsigned char red_led, unsigned char green_led,
|
|
79 |
unsigned char blue_led); |
|
96 |
void orb1_set(uint8_t red_led, uint8_t green_led, uint8_t blue_led);
|
|
97 |
|
|
80 | 98 |
/** @brief Set orb2 to a specified color **/ |
81 |
void orb2_set(unsigned char red_led, unsigned char green_led, |
|
82 |
unsigned char blue_led); |
|
99 |
void orb2_set(uint8_t red_led, uint8_t green_led, uint8_t blue_led); |
|
83 | 100 |
|
101 |
|
|
102 |
// ***** Settings predefined colors ***** |
|
103 |
|
|
84 | 104 |
/** @brief Set both orbs to a specified color **/ |
85 |
void orb_set_color(int col); |
|
105 |
void orb_set_color(uint8_t col); |
|
106 |
|
|
86 | 107 |
/** @brief Set orb1 to a specified color **/ |
87 |
void orb1_set_color(int col); |
|
108 |
void orb1_set_color(uint8_t col); |
|
109 |
|
|
88 | 110 |
/** @brief Set orb2 to a specified color **/ |
89 |
void orb2_set_color(int col);
|
|
111 |
void orb2_set_color(uint8_t col);
|
|
90 | 112 |
|
91 |
/** @brief Disable the orbs **/ |
|
92 |
void orb_disable(void); |
|
93 |
/** @brief Enable the orbs **/ |
|
94 |
void orb_enable(void); |
|
95 |
|
|
96 | 113 |
/** @} **/ //end addtogroup |
97 | 114 |
|
98 | 115 |
#endif |
99 |
|
Also available in: Unified diff