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
nullSensor.h
- Committer:
- mjr
- Date:
- 2016-02-18
- Revision:
- 47:df7a88cd249c
- Parent:
- 44:b5ac89b9cd5d
- Child:
- 48:058ace2aed1d
File content as of revision 47:df7a88cd249c:
// 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.
#ifndef NULLSENSOR_H
#define NULLSENSOR_H
#include "plunger.h"
class PlungerSensorNull: public PlungerSensor
{
public:
    PlungerSensorNull() { }
    
    virtual void init() { }
    virtual bool read(uint16_t &pos) { return false; }
};
#endif /* NULLSENSOR_H */
            
    