Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed ADS1115 StepperMotor SRF05 TPA81new
Revision 36:85c0bf43f4a4, committed 2019-02-06
- Comitter:
- hisyamfs
- Date:
- Wed Feb 06 17:20:43 2019 +0000
- Parent:
- 35:c2af31894a91
- Commit message:
- tpa aja
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Feb 06 16:21:38 2019 +0000
+++ b/main.cpp Wed Feb 06 17:20:43 2019 +0000
@@ -12,8 +12,8 @@
Serial pc(USBTX,USBRX);
// TPA
-TPA81 tpax(PB_9, PB_8, 0xDC);
-TPA81 tpay(PB_9, PB_8, 0xDE);
+TPA81 tpax(D14, D15, 0xDC);
+TPA81 tpay(D14, D15, 0xDE);
// Ultrasonik
//SRF05 srf1(PC_13, PA_14); // trigger, echo
@@ -79,6 +79,8 @@
}
pc.printf("\n");
+ wait(0.5);
+
// for (int i=0; i<200; i++)
// {
// s.step(1, 1, 1/WAIT_TIME);