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.
Diff: BT.cpp
- Revision:
- 0:ef171b42a496
- Child:
- 1:991cdc24ec5e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/BT.cpp Thu Nov 01 23:27:19 2018 +0000
@@ -0,0 +1,16 @@
+
+#include "mbed.h"
+
+AnalogIn analog_value(A0);
+Serial deviceBT(D8, D2);
+
+int main() {
+ deviceBT.baud(9600);
+ float d;
+ while(1){
+ d= analog_value.read()*1024;
+ deviceBT.printf("%f \n",d);
+
+ }
+
+ }
\ No newline at end of file