preproject Vissarut natanich

Files at this revision

API Documentation at this revision

Comitter:
3ecauz
Date:
Mon May 15 06:17:06 2017 +0000
Parent:
14:0cff58556d64
Commit message:
Fix last

Changed in this revision

button.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/button.cpp	Mon May 15 06:12:58 2017 +0000
+++ b/button.cpp	Mon May 15 06:17:06 2017 +0000
@@ -4,10 +4,10 @@
 InterruptIn button(USER_BUTTON); 
 
 void buttonIsr(){
-         if(button==0){
+         
          Serial1.putc('1');
 }
-}
+
 
 void ButtonzigThread (){
     button.rise(&buttonIsr);