Jeff Guzman / Mbed 2 deprecated EMT2410LAB7JeffGuzman

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
arcturus
Date:
Sun Dec 26 01:59:33 2021 +0000
Commit message:
This is my code for EMT 2410 LAB 7 written by Jeff Guzman

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	Sun Dec 26 01:59:33 2021 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+Serial pc(SERIAL_TX, SERIAL_RX);
+
+AnalogIn Resistance(A0);
+PwmOut Brightness (D15);
+
+int main()
+{
+    while(1) {
+        Resistance.read();
+        Brightness = Resistance;
+        pc.printf("Resistance = %f\r\n", Resistance.read());
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Dec 26 01:59:33 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file