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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:f74eaa49df43
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Jul 14 02:38:18 2020 +0000
@@ -0,0 +1,20 @@
+/* FlightPinの動作確認をするためのコード */
+#include "mbed.h"
+
+DigitalIn FlightPin(p30); //FlightPinに使用するピン設定
+DigitalOut myled(LED1); //mbed上のLEDを設定
+
+int main()
+{
+ while(FlightPin == 0); //FlightPinがLowの間は無限ループが続く
+
+ /* FlightPinがHighになったら,LEDを点滅させる */
+ while(1)
+ {
+ myled = 1;
+ wait(1);
+ myled = 0;
+ wait(1);
+ }
+
+}