![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Bluetooth communication for flocking.
Fork of BeautifulMemeProject by
PsiSwarm/i2c.h@27:7eb032772bc2, 2016-01-31 (annotated)
- Committer:
- alanmillard
- Date:
- Sun Jan 31 15:14:54 2016 +0000
- Revision:
- 27:7eb032772bc2
- Parent:
- 10:1b09d4bb847b
Flocking seems to work better now, however the robot controller sometimes "crashes" (unsure why).
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: I2C Header File |
jah128 | 0:8a5497a2e366 | 2 | * |
jah128 | 0:8a5497a2e366 | 3 | * File: i2c.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 | #ifndef I2C_H |
jah128 | 0:8a5497a2e366 | 15 | #define I2C_H |
jah128 | 0:8a5497a2e366 | 16 | |
jah128 | 10:1b09d4bb847b | 17 | char get_dc_status(void); |
jah128 | 10:1b09d4bb847b | 18 | |
jah128 | 0:8a5497a2e366 | 19 | char IF_setup_led_expansion_ic(void); |
jah128 | 0:8a5497a2e366 | 20 | void IF_setup_gpio_expansion_ic(void); |
jah128 | 0:8a5497a2e366 | 21 | |
jah128 | 6:ff3c66f7372b | 22 | void IF_read_aux_ic_data(void); |
jah128 | 0:8a5497a2e366 | 23 | void IF_parse_gpio_byte0(char byte); |
jah128 | 0:8a5497a2e366 | 24 | void IF_parse_gpio_byte1(char byte); |
jah128 | 0:8a5497a2e366 | 25 | void IF_handle_gpio_interrupt(void); |
jah128 | 0:8a5497a2e366 | 26 | void IF_update_gpio_inputs(void); |
jah128 | 0:8a5497a2e366 | 27 | void IF_set_base_LED(char state); |
jah128 | 0:8a5497a2e366 | 28 | void IF_set_IR_emitter_output(char emitter, char state); |
jah128 | 0:8a5497a2e366 | 29 | unsigned short IF_read_IR_adc_value(char adc, char index); |
jah128 | 0:8a5497a2e366 | 30 | char IF_is_switch_pressed(void); |
jah128 | 0:8a5497a2e366 | 31 | char IF_get_switch_state(void); |
jah128 | 0:8a5497a2e366 | 32 | void IF_write_to_led_ic(char byte_0, char byte_1); |
jah128 | 0:8a5497a2e366 | 33 | void IF_setup_temperature_sensor(void); |
jah128 | 0:8a5497a2e366 | 34 | float IF_read_from_temperature_sensor(void); |
jah128 | 0:8a5497a2e366 | 35 | |
jah128 | 0:8a5497a2e366 | 36 | #endif |