tes ir atas semua
Dependencies: mbed ADS1115 StepperMotor SRF05 TPA81new
Diff: main.cpp
- Revision:
- 26:9c7f39e21df4
- Parent:
- 25:a75d6875cb55
- Child:
- 27:4d79aba70fe8
--- a/main.cpp Tue Jan 22 13:38:47 2019 +0000 +++ b/main.cpp Wed Jan 23 12:18:52 2019 +0000 @@ -12,7 +12,7 @@ // TPA TPA81 tpax(PB_9, PB_8, 0xDC); -TPA81 tpay(PB_3, PB_10, 0xDE); +TPA81 tpay(PB_9, PB_8, 0xDE); // Ultrasonik //SRF05 srf1(PC_13, PA_14); // trigger, echo @@ -27,7 +27,7 @@ Uvtron uv(PC_12); // Sound -DigitalIn sound(PA_3); +DigitalIn sound(PA_9); // Line AnalogIn line(PC_1); @@ -35,8 +35,8 @@ int main() { //tpax.changeaddress(0xDC,0xDE); -// while(sound.read()){} -// pc.printf("Sound Detected\n"); + while(sound.read()){} + pc.printf("Sound Detected\n"); while(1) { pc.printf("%d", tpay.getTemp(0)); int i;