Pinscape Controller version 1 fork. This is a fork to allow for ongoing bug fixes to the original controller version, from before the major changes for the expansion board project.
Dependencies: FastIO FastPWM SimpleDMA mbed
Fork of Pinscape_Controller by
nullSensor.h@68:edfecf67a931, 2016-02-15 (annotated)
- Committer:
- mjr
- Date:
- Mon Feb 15 23:03:55 2016 +0000
- Revision:
- 68:edfecf67a931
- Parent:
- 17:ab3cec0c8bf4
- Child:
- 35:e959ffba78fd
Finalize USB library updates to fix compatibility problems introduced in USBHAL_KL25Z overhaul.
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 |