4ea41527f1
Transmit 'true' from robot to base station if robot sonar distance is below a set threshold and then turn on ('true' received) or off ('false' received) base station's signal LED.
12 lines
195 B
C
12 lines
195 B
C
#ifndef MAIN_H
|
|
#define MAIN_H
|
|
|
|
#include <stdint.h>
|
|
|
|
uint8_t tx_address[5] = {0xE7, 0xE7, 0xE7, 0xE7, 0xE7};
|
|
uint8_t rx_address[5] = {0xD7, 0xD7, 0xD7, 0xD7, 0xD7};
|
|
|
|
void read_temp(void);
|
|
|
|
#endif
|