Ciaran Doyle / Mbed 2 deprecated analogo

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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