test publish
Dependencies: mbed GroveEarbudSensor
main.cpp@9:1d5c55b8259f, 2016-03-30 (annotated)
- Committer:
- antoineA
- Date:
- Wed Mar 30 10:28:37 2016 +0000
- Revision:
- 9:1d5c55b8259f
- Parent:
- 1:4249509c28d1
GSRsensor class added / fail at compilation
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
antoineA | 0:8bec0f0b673a | 1 | #include "mbed.h" |
antoineA | 0:8bec0f0b673a | 2 | |
antoineA | 9:1d5c55b8259f | 3 | AnalogIn GSRsignal(p20); |
antoineA | 0:8bec0f0b673a | 4 | |
antoineA | 0:8bec0f0b673a | 5 | int main() |
antoineA | 0:8bec0f0b673a | 6 | { |
antoineA | 9:1d5c55b8259f | 7 | float value; |
antoineA | 9:1d5c55b8259f | 8 | |
antoineA | 9:1d5c55b8259f | 9 | while(42){ |
antoineA | 9:1d5c55b8259f | 10 | value = GSRsignal.read(); |
antoineA | 9:1d5c55b8259f | 11 | printf("Valeur GSR : %0.3f\n\r", value); |
antoineA | 9:1d5c55b8259f | 12 | wait(3); |
antoineA | 9:1d5c55b8259f | 13 | } |
antoineA | 9:1d5c55b8259f | 14 | |
antoineA | 9:1d5c55b8259f | 15 | return 0; |
antoineA | 0:8bec0f0b673a | 16 | } |