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
00001 #include "mbed.h" 00002 #include "Serial.h" 00003 00004 Serial usbSerial(USBTX, USBRX); 00005 InterruptIn mybutton(USER_BUTTON,PullUp); 00006 00007 00008 void ISR_Serial_Rx() 00009 { 00010 // シリアルの受信処理 00011 char data = usbSerial.getc(); 00012 } 00013 00014 void ISR_Serial_Tx() 00015 { 00016 // シリアルのs送信処理 00017 usbSerial.attach(NULL, Serial::TxIrq); 00018 } 00019 00020 void isr() 00021 { 00022 usbSerial.puts("b"); 00023 } 00024 00025 int main() 00026 { 00027 mybutton.fall(&isr); 00028 while (1) {} 00029 }
Generated on Thu Jul 14 2022 09:31:00 by
1.7.2