tes ir atas semua
Dependencies: mbed ADS1115 StepperMotor SRF05 TPA81new
Diff: main.cpp
- Revision:
- 21:bfb064f77f88
- Parent:
- 20:1b0a265598c0
- Child:
- 25:a75d6875cb55
--- a/main.cpp Mon Jan 21 12:37:28 2019 +0000 +++ b/main.cpp Mon Jan 21 12:41:08 2019 +0000 @@ -26,6 +26,9 @@ // Sound DigitalIn sound(PA_3); +// Line +AnalogIn line(PC_1); + int main() { //tpax.changeaddress(0xDC,0xDE); @@ -56,9 +59,11 @@ wait(0.5); // 200 ms relay = 1; - pc.printf("RELAY ON"); + pc.printf("RELAY ON\n"); wait(0.5); relay = 0; - pc.printf("RELAY OFF"); + pc.printf("RELAY OFF\n"); + + pc.printf("Line = %.2f\n", 3300*line.read()); } }