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:5b1899c83404, committed 2015-01-27
- Comitter:
- Quoli
- Date:
- Tue Jan 27 08:06:08 2015 +0000
- Commit message:
- Using at craft club
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 5b1899c83404 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Jan 27 08:06:08 2015 +0000
@@ -0,0 +1,52 @@
+#include "mbed.h"
+
+//テスト用
+DigitalOut led1(LED1);
+
+//DigitalOut led2(LED2);
+//PwmOut led3(LED3);
+//PwmOut led4(LED4);
+
+
+//出力用
+//DigitalOut Out1(p21);
+//DigitalOut Out2(p22);
+//PwmOut pwm3(p23);
+//PwmOut pwm4(p24);
+
+
+ float f;
+ int i;
+ int j;
+
+
+void setup ()// 最初の処理
+ {
+ //PWMの周期指定[s]
+ //Out1.period(0.001);
+ //
+ //Out1.pulsewidth(0.0005)
+ //
+ //Out1 = 0.5;
+}
+
+
+void loop () // 繰り返し処理
+{
+ led1 = 1;
+ wait(0.2);
+ led1 = 0;
+ wait(0.2);
+}
+
+
+int main () //
+{
+ setup();
+
+ for (;;)
+ {
+ loop();
+ }
+
+}
\ No newline at end of file
diff -r 000000000000 -r 5b1899c83404 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Jan 27 08:06:08 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/0b3ab51c8877 \ No newline at end of file
