Ciaran Doyle
/
analogo
Illustration
Revision 0:c8b99e4996d4, committed 2021-04-09
- Comitter:
- qaz
- Date:
- Fri Apr 09 17:19:42 2021 +0000
- Commit message:
- Illustration
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 |
diff -r 000000000000 -r c8b99e4996d4 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Apr 09 17:19:42 2021 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" +// This doesn't seem to be doing a whole lot. Do note that the range +// is 0 - 1, just like AnalogIn objects. +AnalogOut ao(PTE30); + +int main() { + while(1) { + ao = 1; + wait(1); + ao = 0.5; + wait(1); + ao = 0; + wait(1); + } +}
diff -r 000000000000 -r c8b99e4996d4 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Apr 09 17:19:42 2021 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/fb8e0ae1cceb \ No newline at end of file