This is an alternative way to control which channel is active. is saves only the channels that are active in a vector.
Dependencies: mbed
Canal.cpp
- Committer:
- Jamess
- Date:
- 2016-02-28
- Revision:
- 0:5ab9f1abaf4d
File content as of revision 0:5ab9f1abaf4d:
#include "mbed.h" #include "Canal.h" Canal::Canal(void){ state = 0; } bool Canal::getState(void){ return state; } void Canal::setState(bool newState){ state = newState; }