lab 4 complete

Dependencies:   mbed C12832

Revision:
0:088a61d66abb
Child:
1:d2987a6252ff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Apr 25 13:06:30 2021 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+PwmOut led1(p23);
+PwmOut led2(p25);
+
+AnalogIn pot1(p19);
+AnalogIn pot2(p20);
+
+
+int main() {
+    while(1) {
+       led1.write(pot1.read());
+       printf("red: %f ", pot1.read());
+       led2.write(pot2.read());
+       printf("blue: %f ", pot1.read());
+       wait(.05);
+    }
+}