Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:7d2585f73f2e, committed 2021-12-26
- 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