IT Tralee Life Long Learning 2020 Instrumentation, Monitoring and Control Module Laboratory Session

Dependencies:   mbed C12832

Files at this revision

API Documentation at this revision

Comitter:
alejandromontes
Date:
Mon Jul 27 19:40:37 2020 +0000
Commit message:
Alejandro Montes Instrumentation Monitoring and Control LAB

Changed in this revision

C12832.lib Show annotated file Show diff for this revision Revisions of this file
LAB_2.2.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C12832.lib	Mon Jul 27 19:40:37 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/chris/code/C12832/#7de323fa46fe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LAB_2.2.cpp	Mon Jul 27 19:40:37 2020 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "C12832.h"
+
+PwmOut led1(LED1);
+AnalogIn pot1(p19);
+float pressure;
+C12832 lcd(p5, p7, p6, p8, p11);
+
+    int main() {
+        while(1) {
+            pressure = led1 = pot1;
+            wait(0.01);
+            lcd.locate(0,0);
+            lcd.printf("Pressure = %.2f", pressure);
+            lcd.locate(15,11);
+            lcd.printf("Temperature = %.3e", pressure);
+            lcd.locate(0,23);
+            lcd.printf("Force = %.4f", pressure);
+            
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Jul 27 19:40:37 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file