A simple differential A2D demo
Dependencies: AnalogIn_Diff mbed
Diff: main.cpp
- Revision:
- 2:ce56cf821e38
- Parent:
- 1:d32b04ea4c77
--- a/main.cpp Tue May 20 01:03:44 2014 +0000 +++ b/main.cpp Thu May 22 17:41:17 2014 +0000 @@ -5,7 +5,6 @@ - int main() { int16_t d1; float f; @@ -15,8 +14,8 @@ while (true) { - d1 = a2d.read_16(); - f = a2d.read(); + d1 = a2d.read_16(1); + f = a2d.read(1); pc.printf("Result= %f, %d\r\n", f, d1); wait(0.2); }