private void IRTesttimer_Elapsed(object sender, System.EventArgs e) { IRTesttimer.Start(); switch (_IRtestActive) { case 1: _rasPi.rasPiExecute(IR_SEQUENCE, IR_PPP_VIEW); _IRtestActive++; break; case 2: _rasPi.rasPiExecute(IR_SEQUENCE, IR_GOPRO_VIEW); _IRtestActive++; break; case 3: _rasPi.rasPiExecute(IR_SEQUENCE, IR_POSCAM_VIEW); _IRtestActive++; break; case 4: _rasPi.rasPiExecute(IR_SEQUENCE, IR_PREACHER_VIEW); _IRtestActive++; break; case 5: _rasPi.rasPiExecute(IR_SEQUENCE, IR_PRAYER_VIEW); _IRtestActive = 1; break; } }
//start / stop IR sequencer test public void IRTest(bool active) { if (active == true) { _IRtestActive = 1; IRTesttimer.Start(); } else { IRTesttimer.Stop(); _IRtestActive = 0; } }