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.
Dependencies: HC_SR04_Ultrasonic_Library PinDetect
button.cpp
00001 #include "radar.h" 00002 // Callback routine is interrupt activated by a debounced pb hit 00003 // must import Cookbook PinDetct library into project 00004 // URL: http://mbed.org/users/AjK/libraries/PinDetect/lkyxpw 00005 #include "PinDetect.h" 00006 00007 void pb_hit_callback (void) { 00008 position++; 00009 position = position % RANGE_MAX; 00010 led3 = (position >= RANGE_CLOSE); 00011 led2 = (position >= RANGE_MID); 00012 led1 = (position >= RANGE_FAR); 00013 }
Generated on Mon Jul 25 2022 02:11:50 by
1.7.2