1
Diff: BallastController.cpp
- Revision:
- 2:9164b1d0b53d
- Parent:
- 0:8380ab528739
--- a/BallastController.cpp Sat Mar 05 01:54:26 2016 +0000 +++ b/BallastController.cpp Thu Mar 10 16:23:34 2016 +0000 @@ -37,22 +37,14 @@ Solenoids[3] = new Latch_FET_Driver(S4_D,S4_CLK); } -void BallastController::Test() +void BallastController::outputToSolenoids(bool *states) { - BallastController::Solenoids[0] -> changeOutputState(1); - BallastController::Solenoids[1] -> changeOutputState(1); + + for(int a = 0; a < 4; a++) + { + BallastController::Solenoids[a] -> changeOutputState(*(states+a)); + } - //for(int a = 0; a < 4; a++) -// { -// BallastController::Solenoids[a] -> changeOutputState(1); -// } -// -// wait(2); -// -// for(int a = 0; a < 4; a++) -// { -// BallastController::Solenoids[a] -> changeOutputState(0); -// } } \ No newline at end of file