
preproject Vissarut natanich
Revision 15:4f587e24559f, committed 2017-05-15
- 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);