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.
Fork of PsiSwarmV9 by
led.h@5:3cdd1a37cdd7, 2016-10-15 (annotated)
- Committer:
- jah128
- Date:
- Sat Oct 15 13:29:37 2016 +0000
- Revision:
- 5:3cdd1a37cdd7
- Parent:
- 2:c6986ee3c7c5
- Child:
- 6:b340a527add9
Initial commit of API Version 7 (fork from version 5)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jah128 | 0:d6269d17c8cf | 1 | /* University of York Robotics Laboratory PsiSwarm Library: LED Functions Header File |
jah128 | 0:d6269d17c8cf | 2 | * |
jah128 | 0:d6269d17c8cf | 3 | * File: led.h |
jah128 | 0:d6269d17c8cf | 4 | * |
jah128 | 0:d6269d17c8cf | 5 | * (C) Dept. Electronics & Computer Science, University of York |
jah128 | 0:d6269d17c8cf | 6 | * James Hilder, Alan Millard, Alexander Horsfield, Homero Elizondo, Jon Timmis |
jah128 | 0:d6269d17c8cf | 7 | * |
jah128 | 5:3cdd1a37cdd7 | 8 | * PsiSwarm Library Version: 0.7 |
jah128 | 0:d6269d17c8cf | 9 | * |
jah128 | 5:3cdd1a37cdd7 | 10 | * October 2016 |
jah128 | 0:d6269d17c8cf | 11 | * |
jah128 | 0:d6269d17c8cf | 12 | * |
jah128 | 0:d6269d17c8cf | 13 | */ |
jah128 | 0:d6269d17c8cf | 14 | |
jah128 | 0:d6269d17c8cf | 15 | |
jah128 | 0:d6269d17c8cf | 16 | #ifndef LED_H |
jah128 | 0:d6269d17c8cf | 17 | #define LED_H |
jah128 | 0:d6269d17c8cf | 18 | |
jah128 | 0:d6269d17c8cf | 19 | unsigned short get_led_states(void); |
jah128 | 0:d6269d17c8cf | 20 | void set_leds(char green, char red); |
jah128 | 0:d6269d17c8cf | 21 | void set_green_leds(char green); |
jah128 | 0:d6269d17c8cf | 22 | void set_red_leds(char red); |
jah128 | 0:d6269d17c8cf | 23 | void set_led(char led, char state); |
jah128 | 0:d6269d17c8cf | 24 | void set_base_led(char state); |
jah128 | 0:d6269d17c8cf | 25 | void blink_leds(float timeout); |
jah128 | 0:d6269d17c8cf | 26 | void set_center_led(char state); |
jah128 | 0:d6269d17c8cf | 27 | void set_center_led(char state, float brightness); |
jah128 | 0:d6269d17c8cf | 28 | void set_center_led_brightness(float brightness); |
jah128 | 0:d6269d17c8cf | 29 | void save_led_states(void); |
jah128 | 0:d6269d17c8cf | 30 | void restore_led_states(void); |
jah128 | 0:d6269d17c8cf | 31 | void IF_init_leds(void); |
jah128 | 0:d6269d17c8cf | 32 | void IF_update_leds(void); |
jah128 | 0:d6269d17c8cf | 33 | |
jah128 | 0:d6269d17c8cf | 34 | #endif |