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
main.cpp
- Committer:
- sasakisho
- Date:
- 2020-07-14
- Revision:
- 0:f74eaa49df43
File content as of revision 0:f74eaa49df43:
/* 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);
}
}