PsiSwarm Library  0.8
led.h
1 /* University of York Robotics Laboratory PsiSwarm Library: LED Functions Header File
2  *
3  * Copyright 2016 University of York
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
7  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS
8  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9  * See the License for the specific language governing permissions and limitations under the License.
10  *
11  * File: led.h
12  *
13  * (C) Dept. Electronics & Computer Science, University of York
14  * James Hilder, Alan Millard, Alexander Horsfield, Homero Elizondo, Jon Timmis
15  *
16  * PsiSwarm Library Version: 0.8
17  *
18  * October 2016
19  *
20  *
21  */
22 
23 
24 #ifndef LED_H
25 #define LED_H
26 
42 class Led
43 {
44 
45 public:
46 
51  void set_leds(char green, char red);
52 
56  void set_green_leds(char green);
57 
61  void set_red_leds(char red);
62 
67  void set_led(char led, char state);
68 
72  void set_base_led(char state);
73 
77  void blink_leds(float timeout);
78 
82  void set_center_led(char state);
83 
88  void set_center_led(char state, float brightness);
89 
93  void set_center_led_brightness(float brightness);
94 
98  unsigned short get_led_states(void);
99 
102  void save_led_states(void);
103 
106  void restore_led_states(void);
107 
108  void IF_init_leds(void);
109  void IF_update_leds(void);
110 
111 };
112 #endif
void set_leds(char green, char red)
Definition: led.cpp:38
void set_center_led_brightness(float brightness)
Definition: led.cpp:107
void set_center_led(char state)
Definition: led.cpp:78
unsigned short get_led_states(void)
Definition: led.cpp:33
void set_base_led(char state)
Definition: led.cpp:45
Definition: led.h:42
void set_led(char led, char state)
Definition: led.cpp:62
void set_green_leds(char green)
Definition: led.cpp:50
void save_led_states(void)
Definition: led.cpp:112
void restore_led_states(void)
Definition: led.cpp:118
void blink_leds(float timeout)
Definition: led.cpp:71
void set_red_leds(char red)
Definition: led.cpp:56