Junichi Itou
/
Logibot_Temp
nucleoの基本制御を行うためのひな型です
Revision 1:ee11c75ab84e, committed 2017-03-03
- Comitter:
- Jrobo
- Date:
- Fri Mar 03 21:14:36 2017 +0000
- Parent:
- 0:6a5e2efcf3c1
- Commit message:
- update
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6a5e2efcf3c1 -r ee11c75ab84e main.cpp --- a/main.cpp Fri Mar 03 20:38:37 2017 +0000 +++ b/main.cpp Fri Mar 03 21:14:36 2017 +0000 @@ -1,8 +1,11 @@ #include "mbed.h" - #include "beep_sound.h" +#include "beep_sound.h" DigitalIn sw(PC_13);//スイッチの設定 DigitalOut led(LED1);//ledの設定 beep_sound sp(PB_7);//スピーカーの設定 -int main(void) {//プログラムはここから開始 - +int main(void) //プログラムはここから開始 +{ + while(1) { //無限ループ + + } }