test publish
Dependencies: mbed GroveEarbudSensor
GSRSensor.cpp@13:879d678baf64, 2016-04-14 (annotated)
- Committer:
- age2pierre
- Date:
- Thu Apr 14 14:01:28 2016 +0000
- Revision:
- 13:879d678baf64
- Parent:
- 10:af58557a4d6c
Added Ticker
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 | } |