T00221592 Potentiometer experiment Winter Lab 1

Dependencies:   mbed C12832

Files at this revision

API Documentation at this revision

Comitter:
t00221592
Date:
Tue Dec 21 10:04:43 2021 +0000
Commit message:
T00221592 Instrumentation Winter Lab 1

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	Tue Dec 21 10:04:43 2021 +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/main.cpp	Tue Dec 21 10:04:43 2021 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "C12832.h"
+C12832 lcd(p5, p7, p6, p8, p11);
+PwmOut led1(LED1);
+AnalogIn pot1(p19);
+int main() {
+ while(1) {
+ led1 = pot1;
+ lcd.printf("%.1f", pot1.read());
+ lcd.printf("%.1e", pot1.read());
+ wait(1);
+ lcd.locate(0,0);
+ lcd.locate(0,0);
+ }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Dec 21 10:04:43 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file