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 47:7508f9cc7a9b, committed 2019-03-05
- Comitter:
- hisyamfs
- Date:
- Tue Mar 05 13:13:03 2019 +0000
- Parent:
- 46:4030083b43b3
- Child:
- 48:c8c9c624d46d
- Commit message:
- bisa, print di luar loop
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Mar 05 13:09:54 2019 +0000
+++ b/main.cpp Tue Mar 05 13:13:03 2019 +0000
@@ -106,10 +106,11 @@
for (uint8_t i=0; i < 4; i++) {
ads_raw[i] = ads.readADC_SingleEnded(i);
ird[i] = call_ads(ads_raw[i]);
- pc.printf("%.2f ", ird[i]);
+// pc.printf("%.2f ", ird[i]);
wait_ms(10);
};
- pc.printf("\n");
+// pc.printf("\n");
+ pc.printf("%.2f %.2f %.2f %.2f\n", ird[1],ird[3],ird[2],ird[0]);
pc.printf("%.2f %.2f\n", dist_a3, dist_a1);
pc.printf("%.2f %.2f\n", dist_a4, dist_a6);
pc.printf("%.2f %.2f %.2f %.2f\n", dist_a2, dist_a8, dist_a7, dist_a5);