first
Dependents: 17robo_fuzi 17robo_tokyo_kaede
Revision 1:e0bcbeb71a97, committed 2017-09-28
- Comitter:
- echo_piyo
- Date:
- Thu Sep 28 02:24:05 2017 +0000
- Parent:
- 0:3555e86bf40d
- Commit message:
- .cyclicOn().cyclicOff() ???????
Changed in this revision
cyclic_io.cpp | Show annotated file Show diff for this revision Revisions of this file |
cyclic_io.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/cyclic_io.cpp Wed Sep 20 07:09:50 2017 +0000 +++ b/cyclic_io.cpp Thu Sep 28 02:24:05 2017 +0000 @@ -13,6 +13,15 @@ } else flag = false; } + +void CyclicIo::cyclicOn(){ + gpio = 0; +} + +void CyclicIo::cyclicOff(){ + gpio = 1; +} + int CyclicIo::getState(){ return (int)gpio; } \ No newline at end of file
--- a/cyclic_io.h Wed Sep 20 07:09:50 2017 +0000 +++ b/cyclic_io.h Thu Sep 28 02:24:05 2017 +0000 @@ -24,6 +24,8 @@ CyclicIo(PinName pin); void cyclic(int state); int getState(); + void cyclicOn(); + void cyclicOff(); private: DigitalOut gpio;