Lab1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
HeptaSatTraining2019
Date:
Wed Aug 21 12:35:13 2019 +0000
Parent:
23:198d7b6e1dd5
Commit message:

Changed in this revision

HEPTA_CDH.lib Show diff for this revision Revisions of this file
HEPTA_COM.lib Show diff for this revision Revisions of this file
HEPTA_EPS.lib Show diff for this revision Revisions of this file
HEPTA_SENSOR.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/HEPTA_CDH.lib	Wed Aug 21 12:22:21 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/users/HeptaSatTraining2019/code/HEPTA_CDH/#58ce2bfde7a8
--- a/HEPTA_COM.lib	Wed Aug 21 12:22:21 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/users/HeptaSatTraining2019/code/HEPTA_COM/#1838cbd7d223
--- a/HEPTA_EPS.lib	Wed Aug 21 12:22:21 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/users/HeptaSatTraining2019/code/HEPTA_EPS/#4f08f55763c7
--- a/HEPTA_SENSOR.lib	Wed Aug 21 12:22:21 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/users/HeptaSatTraining2019/code/HEPTA_SENSOR/#9023eea2a66e
--- a/main.cpp	Wed Aug 21 12:22:21 2019 +0000
+++ b/main.cpp	Wed Aug 21 12:35:13 2019 +0000
@@ -1,26 +1,23 @@
 #include "mbed.h"
-#include"HEPTA_EPS.h"
-#include"HEPTA_CDH.h"
-#include"HEPTA_SENSOR.h"
-#include"HEPTA_COM.h"
-
+ 
 Serial pc(USBTX,USBRX);
-HEPTA_EPS eps(p16,p26);
-HEPTA_CDH cdh(p5, p6, p7, p8, "sd");
-/*HEPTA_SENSOR sensor(p13, p14,p25,p24, 
-                    p28,p27,0xD0,0x18,
-                    p17);*/
-HEPTA_SENSOR sensor(p17, 
-                    p28,p27,0xD0,0x18,
-                    p13, p14,p25,p24);
-HEPTA_COM com(p9,p10);
-
-DigitalOut myled(LED1);
-
+ 
 int main()
 {
-    myled = 1;
-    wait(0.5);
-    myled = 0;
-    wait(0.5);
+ 
+    pc.baud(9600);
+    int i1 = 7;
+    float i2 = 7.5;
+    char i3 = 'H';
+    pc.printf("Hello World!\r\n");
+    pc.printf("i1 = %d\r\n",i1);
+    pc.printf("i2 = %f\r\n",i2);
+    pc.printf("i3 = %c\r\n",i3);
+    pc.putc(i3);
+ 
+    for(i1 = 0; i1 < 10; i1++) {
+        pc.printf("i1 = %d\r\n",i1);
+        pc.putc(pc.getc());
+    }
+ 
 }
\ No newline at end of file