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:65cdac390afc, committed 2019-10-10
- Comitter:
- maenoshin
- Date:
- Thu Oct 10 02:28:42 2019 +0000
- Commit message:
- V
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 65cdac390afc main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Oct 10 02:28:42 2019 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+//DigitalOut(D0);
+
+
+PwmOut myled(D10);
+
+int main() {
+
+ myled.period(0.01);
+
+
+ while(1) {//組み込み型のプログラムは無限ループになるようにする。(終わってはいけない)
+// D0=0;
+ myled.pulsewidth(0.003);
+ wait(5.0); // 1 sec
+ myled.pulsewidth(0.005);
+ wait(5.0); // 1 sec
+// D0=1;
+ myled.pulsewidth(0.003);
+ wait(5.0); // 1 sec
+ myled.pulsewidth(0.005);
+ wait(5.0); // 1 sec
+ }
+}
diff -r 000000000000 -r 65cdac390afc mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Oct 10 02:28:42 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file