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: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 |
--- /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);
+ }
+}
--- /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