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 FastIO FastPWM USBDevice
Fork of Pinscape_Controller by
Plunger/nullSensor.h@105:6a25bbfae1e4, 2020-01-23 (annotated)
- Committer:
- mjr
- Date:
- Thu Jan 23 04:09:24 2020 +0000
- Revision:
- 105:6a25bbfae1e4
- Parent:
- 86:e30a1f60f783
Fix AEDR-8300 reverse orientation option
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| mjr | 17:ab3cec0c8bf4 | 1 | // Null plunger sensor | 
| mjr | 17:ab3cec0c8bf4 | 2 | // | 
| mjr | 17:ab3cec0c8bf4 | 3 | // This file defines a class that provides the plunger sensor interface | 
| mjr | 17:ab3cec0c8bf4 | 4 | // that the main program expects, but with no physical sensor underneath. | 
| mjr | 17:ab3cec0c8bf4 | 5 | |
| mjr | 35:e959ffba78fd | 6 | #ifndef NULLSENSOR_H | 
| mjr | 35:e959ffba78fd | 7 | #define NULLSENSOR_H | 
| mjr | 17:ab3cec0c8bf4 | 8 | |
| mjr | 35:e959ffba78fd | 9 | #include "plunger.h" | 
| mjr | 35:e959ffba78fd | 10 | |
| mjr | 35:e959ffba78fd | 11 | class PlungerSensorNull: public PlungerSensor | 
| mjr | 17:ab3cec0c8bf4 | 12 | { | 
| mjr | 17:ab3cec0c8bf4 | 13 | public: | 
| mjr | 86:e30a1f60f783 | 14 | PlungerSensorNull() : PlungerSensor(65535) { } | 
| mjr | 17:ab3cec0c8bf4 | 15 | |
| mjr | 35:e959ffba78fd | 16 | virtual void init() { } | 
| mjr | 86:e30a1f60f783 | 17 | virtual bool readRaw(PlungerReading &r) { return false; } | 
| mjr | 52:8298b2a73eb2 | 18 | virtual uint32_t getAvgScanTime() { return 0; } | 
| mjr | 17:ab3cec0c8bf4 | 19 | }; | 
| mjr | 17:ab3cec0c8bf4 | 20 | |
| mjr | 35:e959ffba78fd | 21 | #endif /* NULLSENSOR_H */ | 
