sdf
Dependencies: mbed C12832 Servo RangeFinder Pulse
moistureSensor/MoistureSensor.h@0:4db5f0f5faa0, 2022-02-23 (annotated)
- Committer:
- asimelfadil
- Date:
- Wed Feb 23 10:19:24 2022 +0000
- Revision:
- 0:4db5f0f5faa0
Jon
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
asimelfadil | 0:4db5f0f5faa0 | 1 | #ifndef MoistureSensor_H |
asimelfadil | 0:4db5f0f5faa0 | 2 | #define MoistureSensor_H |
asimelfadil | 0:4db5f0f5faa0 | 3 | |
asimelfadil | 0:4db5f0f5faa0 | 4 | #include "mbed.h" |
asimelfadil | 0:4db5f0f5faa0 | 5 | |
asimelfadil | 0:4db5f0f5faa0 | 6 | //Sensor new class for sensorA |
asimelfadil | 0:4db5f0f5faa0 | 7 | class moisture_sensor |
asimelfadil | 0:4db5f0f5faa0 | 8 | |
asimelfadil | 0:4db5f0f5faa0 | 9 | { |
asimelfadil | 0:4db5f0f5faa0 | 10 | public: |
asimelfadil | 0:4db5f0f5faa0 | 11 | |
asimelfadil | 0:4db5f0f5faa0 | 12 | moisture_sensor(PinName pin); |
asimelfadil | 0:4db5f0f5faa0 | 13 | ~moisture_sensor(); |
asimelfadil | 0:4db5f0f5faa0 | 14 | float read(); |
asimelfadil | 0:4db5f0f5faa0 | 15 | private: |
asimelfadil | 0:4db5f0f5faa0 | 16 | //class sets up the AnalogIn pin |
asimelfadil | 0:4db5f0f5faa0 | 17 | AnalogIn _pin; |
asimelfadil | 0:4db5f0f5faa0 | 18 | }; |
asimelfadil | 0:4db5f0f5faa0 | 19 | #endif |