Liam McHale / Mbed 2 deprecated lab2part2again

Dependencies:   mbed C12832

Files at this revision

API Documentation at this revision

Comitter:
liammchale
Date:
Sat Aug 01 08:21:10 2020 +0000
Child:
1:0681ee244174
Commit message:
2.2 lab answer

Changed in this revision

C12832.lib Show annotated file Show diff for this revision Revisions of this file
main.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	Sat Aug 01 08:21:10 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/askksa12543/code/C12832/#990d5eec2ef6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Aug 01 08:21:10 2020 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"//preprocessor directive
+#include "C12832.h"//preprocessor directive
+
+C12832 lcd(p5,p7,p6,p8,p11);
+PwmOut led1(LED1);
+AnalogIn pot1(p19);
+
+int main(){
+    lcd.cls();
+    lcd.locate(0,3);
+    while(1){
+        float t = pot1;
+        led1 = pot1;
+        lcd.printf("value of pot is %f\n",t);
+        wait(0.01);
+        }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Aug 01 08:21:10 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file