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:93b19e13836e
- Child:
- 1:f08cfb821949
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Nov 17 05:15:39 2018 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+DigitalIn flight(p22); //フライトピン
+DigitalOut FET(p21); //FET
+
+int main() {
+ FET = 0;
+ while(1) {
+ if(flight==1) {
+ wait(10);
+ }
+ else{
+ FET = 0; //FET、ニクロム線切断
+ wait(300);
+ FET = 1;
+ wait(10);
+ FET = 0;
+ wait(15);
+ FET = 1;
+ wait(10);
+ FET = 0;
+ break;
+ }
+ }
+ }
\ No newline at end of file