...
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; } } } |
...
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; } } } |