Lab1-part8 potentiometer

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
logostarr
Date:
Thu Sep 08 16:19:03 2022 +0000
Commit message:
Lab1-part 8

Changed in this revision

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/main.cpp	Thu Sep 08 16:19:03 2022 +0000
@@ -0,0 +1,10 @@
+#include "mbed.h"
+PwmOut myled(LED1);
+AnalogIn mypotentiometer(p20);
+int main()
+{
+    while(1) {
+        myled = mypotentiometer;
+        wait(0.01);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Sep 08 16:19:03 2022 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file