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
Revision 1:201290089367, committed 2018-09-24
- Comitter:
- 771_8bit
- Date:
- Mon Sep 24 11:26:07 2018 +0000
- Parent:
- 0:cb13f0c964c0
- Commit message:
- ????????;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r cb13f0c964c0 -r 201290089367 main.cpp
--- a/main.cpp Thu Aug 16 11:45:58 2018 +0000
+++ b/main.cpp Mon Sep 24 11:26:07 2018 +0000
@@ -1,26 +1,27 @@
#include "mbed.h"
#include "Serial.h"
-
+
Serial usbSerial(USBTX, USBRX);
InterruptIn mybutton(USER_BUTTON,PullUp);
-
+
void ISR_Serial_Rx()
{
// シリアルの受信処理
char data = usbSerial.getc();
}
-
+
void ISR_Serial_Tx()
{
// シリアルのs送信処理
usbSerial.attach(NULL, Serial::TxIrq);
}
-void isr() {
- usbSerial.puts("a");
+void isr()
+{
+ usbSerial.puts("b");
}
-
+
int main()
{
mybutton.fall(&isr);