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 24:d8218318b7d9, committed 2019-01-21
- Comitter:
- hisyamfs
- Date:
- Mon Jan 21 14:21:43 2019 +0000
- Parent:
- 18:f3b23331090f
- Commit message:
- test tanpa ultrasonik, bisa
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jan 21 12:25:18 2019 +0000
+++ b/main.cpp Mon Jan 21 14:21:43 2019 +0000
@@ -1,6 +1,7 @@
#include "mbed.h"
#include "TPA81new.h"
#include "SRF05.h"
+#include "Uvtron.h"
#define LCD_D4_DIG PA_15
#define LCD_D5_DIG PA_14
@@ -50,9 +51,9 @@
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");
}
}