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.
Dependents: TargetManagerManualTest NerfUSTarget
Bumper.hpp
00001 #ifndef BUMPER_HPP 00002 #define BUMPER_HPP 00003 00004 //Limit switch connections: 00005 // C (common): pin to read 00006 // NO (normally open): VCC 00007 // NC (normally closed): GND 00008 //Source: http://www.omron.com.au/service_support/FAQ/FAQ03206/index.asp 00009 00010 #include "mbed.h" 00011 #include "NerfusCallbackInterface.hpp" 00012 00013 class Bumper 00014 { 00015 public: 00016 Bumper(PinName pin, NerfusCallbackInterface* nerfus_rise_callback); 00017 void set_callbacks(NerfusCallbackInterface* nerfus_rise_callback); 00018 void rise_callback(); 00019 00020 private: 00021 InterruptIn interrupt_in; 00022 NerfusCallbackInterface* nerfus_rise_callback; 00023 }; 00024 00025 #endif
Generated on Tue Jul 12 2022 17:18:21 by
1.7.2