hidetoshi sakamoto
/
Lesson_01_reversal
デジタルポート反転制御
main.cpp
- Committer:
- spyglass77
- Date:
- 2015-08-28
- Revision:
- 2:ea1827f0aee8
- Parent:
- 1:d95c4085cf00
File content as of revision 2:ea1827f0aee8:
#include "mbed.h" //LEDを点滅させるプログラム //Digital port reversal. DigitalOut port7(D7); int main() { while(1) { port7 = !port7; //D7 portを反転させる wait(0.2); // 0.2秒待つ } }