![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ft. button press reset
Fork of BeaconDemo_RobotCode by
PsiSwarm/led.h@10:1b09d4bb847b, 2015-10-26 (annotated)
- Committer:
- jah128
- Date:
- Mon Oct 26 23:58:08 2015 +0000
- Revision:
- 10:1b09d4bb847b
- Parent:
- 6:ff3c66f7372b
Reordered files; updated display
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jah128 | 0:8a5497a2e366 | 1 | /* University of York Robotics Laboratory PsiSwarm Library: LED Functions Header File |
jah128 | 0:8a5497a2e366 | 2 | * |
jah128 | 0:8a5497a2e366 | 3 | * File: led.h |
jah128 | 0:8a5497a2e366 | 4 | * |
jah128 | 6:ff3c66f7372b | 5 | * (C) Dept. Electronics & Computer Science, University of York |
jah128 | 6:ff3c66f7372b | 6 | * James Hilder, Alan Millard, Homero Elizondo, Jon Timmis |
jah128 | 0:8a5497a2e366 | 7 | * |
jah128 | 6:ff3c66f7372b | 8 | * PsiSwarm Library Version: 0.3 |
jah128 | 0:8a5497a2e366 | 9 | * |
jah128 | 6:ff3c66f7372b | 10 | * October 2015 |
jah128 | 0:8a5497a2e366 | 11 | * |
jah128 | 0:8a5497a2e366 | 12 | */ |
jah128 | 0:8a5497a2e366 | 13 | |
jah128 | 0:8a5497a2e366 | 14 | |
jah128 | 0:8a5497a2e366 | 15 | #ifndef LED_H |
jah128 | 0:8a5497a2e366 | 16 | #define LED_H |
jah128 | 0:8a5497a2e366 | 17 | |
jah128 | 0:8a5497a2e366 | 18 | unsigned short get_led_states(void); |
jah128 | 0:8a5497a2e366 | 19 | void set_leds(char green, char red); |
jah128 | 0:8a5497a2e366 | 20 | void set_green_leds(char green); |
jah128 | 0:8a5497a2e366 | 21 | void set_red_leds(char red); |
jah128 | 0:8a5497a2e366 | 22 | void set_led(char led, char state); |
jah128 | 0:8a5497a2e366 | 23 | void set_base_led(char state); |
jah128 | 0:8a5497a2e366 | 24 | void blink_leds(float timeout); |
jah128 | 0:8a5497a2e366 | 25 | void set_center_led(char state); |
jah128 | 0:8a5497a2e366 | 26 | void set_center_led(char state, float brightness); |
jah128 | 0:8a5497a2e366 | 27 | void set_center_led_brightness(float brightness); |
jah128 | 10:1b09d4bb847b | 28 | void save_led_states(void); |
jah128 | 10:1b09d4bb847b | 29 | void restore_led_states(void); |
jah128 | 0:8a5497a2e366 | 30 | void IF_init_leds(void); |
jah128 | 0:8a5497a2e366 | 31 | void IF_update_leds(void); |
jah128 | 0:8a5497a2e366 | 32 | |
jah128 | 0:8a5497a2e366 | 33 | #endif |