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
SensorController.h@10:fd4670ec0806, 2016-06-10 (annotated)
- Committer:
- sbouber1
- Date:
- Fri Jun 10 22:21:04 2016 +0000
- Revision:
- 10:fd4670ec0806
- Child:
- 66:133398875949
Optional threading
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| sbouber1 | 10:fd4670ec0806 | 1 | #ifndef __SENSORCONTROLLER_H__ |
| sbouber1 | 10:fd4670ec0806 | 2 | #define __SENSORCONTROLLER_H__ |
| sbouber1 | 10:fd4670ec0806 | 3 | |
| sbouber1 | 10:fd4670ec0806 | 4 | #include "Controller.h" |
| sbouber1 | 10:fd4670ec0806 | 5 | |
| sbouber1 | 10:fd4670ec0806 | 6 | class SensorController : public Controller { |
| sbouber1 | 10:fd4670ec0806 | 7 | public: |
| sbouber1 | 10:fd4670ec0806 | 8 | SensorController(bool threaded, int interval_ms) : Controller(threaded, interval_ms) {} |
| sbouber1 | 10:fd4670ec0806 | 9 | |
| sbouber1 | 10:fd4670ec0806 | 10 | virtual float getValue() = 0; |
| sbouber1 | 10:fd4670ec0806 | 11 | }; |
| sbouber1 | 10:fd4670ec0806 | 12 | |
| sbouber1 | 10:fd4670ec0806 | 13 | #endif |