Reset the program to its initial state.
()
| 88 | * Reset the program to its initial state. |
| 89 | */ |
| 90 | @Override |
| 91 | public void reset() { |
| 92 | counter=0; |
| 93 | dt=0; |
| 94 | animationThread=null; |
| 95 | control.setValue("counter", counter); // show value |
| 96 | control.setValue("dt", dt); // show value |
| 97 | } |
| 98 | |
| 99 | public void startHelper() { |
| 100 | control.println("Start pressed"); |