STM32 Nucleo F207Z ultrasonic radar. TODO: send the data over the net
Dependencies: HC_SR04_Ultrasonic_Library PinDetect
button.cpp
- Committer:
- vhx
- Date:
- 2018-06-28
- Revision:
- 0:23a36e52a5fa
- Child:
- 1:b4179d7a5f2c
File content as of revision 0:23a36e52a5fa:
#include "radar.h" // Callback routine is interrupt activated by a debounced pb hit void pb_hit_callback (void) { position++; position = position % RANGE_MAX; led3 = (position >= RANGE_CLOSE); led2 = (position >= RANGE_MID); led1 = (position >= RANGE_FAR); }