Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
ClearTimer(Tx);
// tai
time1[Tx] = 0;

Esimerkki 1.

Code Block

task main()
{
  int t;

  ClearTimer(T1);
  while (1) {
    if (SensorValue[S1] == 1) { // kosketusanturi painettu pohjaan
      ClearTimer(T1);
      t = time1[T1];
    }
    if (time1[T1] >= 1000) {
      break;
    }
  }
}