![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
work in progress
Dependencies: FastAnalogIn FastIO USBDevice mbed FastPWM SimpleDMA
Fork of Pinscape_Controller by
nullSensor.h@17:ab3cec0c8bf4, 2015-02-27 (annotated)
- Committer:
- mjr
- Date:
- Fri Feb 27 04:14:04 2015 +0000
- Revision:
- 17:ab3cec0c8bf4
FastIO and FastAnalogIn; better firing event sensing; potentiometer plunger sensor option; new key debouncing; ZB Launch Ball feature
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 | 17:ab3cec0c8bf4 | 6 | const int npix = JOYMAX; |
mjr | 17:ab3cec0c8bf4 | 7 | |
mjr | 17:ab3cec0c8bf4 | 8 | class PlungerSensor |
mjr | 17:ab3cec0c8bf4 | 9 | { |
mjr | 17:ab3cec0c8bf4 | 10 | public: |
mjr | 17:ab3cec0c8bf4 | 11 | PlungerSensor() { } |
mjr | 17:ab3cec0c8bf4 | 12 | |
mjr | 17:ab3cec0c8bf4 | 13 | void init() { } |
mjr | 17:ab3cec0c8bf4 | 14 | int lowResScan() { return 0; } |
mjr | 17:ab3cec0c8bf4 | 15 | bool highResScan(int &pos) { return false; } |
mjr | 17:ab3cec0c8bf4 | 16 | void sendExposureReport(USBJoystick &) { } |
mjr | 17:ab3cec0c8bf4 | 17 | }; |
mjr | 17:ab3cec0c8bf4 | 18 |