test publish
Dependencies: mbed GroveEarbudSensor
GSRSensor.cpp@10:af58557a4d6c, 2016-04-11 (annotated)
- Committer:
- antoineA
- Date:
- Mon Apr 11 13:46:08 2016 +0000
- Revision:
- 10:af58557a4d6c
GSRSensor class added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
antoineA | 10:af58557a4d6c | 1 | #include "GSRSensor.h" |
antoineA | 10:af58557a4d6c | 2 | |
antoineA | 10:af58557a4d6c | 3 | GSRSensor::GSRSensor(AnalogIn *pin){ |
antoineA | 10:af58557a4d6c | 4 | input = pin; |
antoineA | 10:af58557a4d6c | 5 | } |
antoineA | 10:af58557a4d6c | 6 | |
antoineA | 10:af58557a4d6c | 7 | float GSRSensor::getGSRValue(){ |
antoineA | 10:af58557a4d6c | 8 | return input->read(); |
antoineA | 10:af58557a4d6c | 9 | } |