![](/media/cache/profiles/5f14615696649541a025d3d0f8e0447f.jpg.50x50_q85.jpg)
ワークショップ用に公開しているものです。
Fork of Arch_Analog_Thermistor_Blinker by
main.cpp
- Committer:
- viswesr
- Date:
- 2013-09-16
- Revision:
- 3:a72374052938
- Parent:
- 2:d7639bb949d7
- Child:
- 4:ba523da0d68a
File content as of revision 3:a72374052938:
#include "mbed.h" DigitalOut led(LED1); // Configure LED1 pin as output DigitalIn button(P1_14); // Configure P1_14 pin as input int main() { while(1) { led.write(button.read()); /* read the state of input port pin P1_14 and write it to output port pin LED1*/ } }