push switc
Dependents: NJU6063_HelloWorld
Revision 3:952d0895e274, committed 2016-01-25
- Comitter:
- og
- Date:
- Mon Jan 25 08:59:31 2016 +0000
- Parent:
- 2:74f6d3b45803
- Commit message:
- test
Changed in this revision
Switch.cpp | Show annotated file Show diff for this revision Revisions of this file |
Switch.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 74f6d3b45803 -r 952d0895e274 Switch.cpp --- a/Switch.cpp Mon Jan 18 05:07:38 2016 +0000 +++ b/Switch.cpp Mon Jan 25 08:59:31 2016 +0000 @@ -6,7 +6,7 @@ { } -void Switch::init(void) +void Switch::begin(void) { _sw0.mode(PullUp); _sw1.mode(PullUp);
diff -r 74f6d3b45803 -r 952d0895e274 Switch.h --- a/Switch.h Mon Jan 18 05:07:38 2016 +0000 +++ b/Switch.h Mon Jan 25 08:59:31 2016 +0000 @@ -18,7 +18,7 @@ public: Switch( PinName sw0, PinName sw1); ~Switch(){}; - void init(void); + void begin(void); void swcheck(void); uint8_t negedge(uint8_t no); uint8_t posedge(uint8_t no);