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: mbed DRV88255 TextLCD Ping mbed-rtos
ProximityController.h
00001 #ifndef __PROXIMITYCONTROLLER_H__ 00002 #define __PROXIMITYCONTROLLER_H__ 00003 00004 #include "stdio.h" 00005 #include "Ping.h" 00006 #include "mbed.h" 00007 #include "SensorController.h" 00008 #include "settings.h" 00009 00010 class ProximityController : public SensorController { 00011 public: 00012 ProximityController(bool threaded, int interval_ms) : SensorController(threaded, interval_ms) {printf("Initiate Proximity Controller\r\n");} 00013 00014 virtual void update(); 00015 00016 virtual float getValue(); 00017 00018 float getDistance(); 00019 00020 virtual std::string getName(); 00021 00022 virtual void setLed(bool); 00023 00024 private: 00025 float distance; 00026 float volume; 00027 }; 00028 00029 00030 #endif
Generated on Tue Jul 12 2022 18:59:29 by
1.7.2