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
Diff: nullSensor.h
- Revision:
- 17:ab3cec0c8bf4
- Child:
- 35:e959ffba78fd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nullSensor.h Fri Feb 27 04:14:04 2015 +0000 @@ -0,0 +1,18 @@ +// Null plunger sensor +// +// This file defines a class that provides the plunger sensor interface +// that the main program expects, but with no physical sensor underneath. + +const int npix = JOYMAX; + +class PlungerSensor +{ +public: + PlungerSensor() { } + + void init() { } + int lowResScan() { return 0; } + bool highResScan(int &pos) { return false; } + void sendExposureReport(USBJoystick &) { } +}; +