first
Dependents: 17robo_fuzi 17robo_tokyo_kaede
Diff: cyclic_io.cpp
- Revision:
- 1:e0bcbeb71a97
- Parent:
- 0:3555e86bf40d
diff -r 3555e86bf40d -r e0bcbeb71a97 cyclic_io.cpp --- 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