diff options
Diffstat (limited to 'kjsembed/docs/examples/timer')
-rw-r--r-- | kjsembed/docs/examples/timer/timer.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kjsembed/docs/examples/timer/timer.js b/kjsembed/docs/examples/timer/timer.js new file mode 100644 index 00000000..fabb669f --- /dev/null +++ b/kjsembed/docs/examples/timer/timer.js @@ -0,0 +1,10 @@ +#!/usr/bin/env kjscmd + +var led = new KLed(); +var timer = new QTimer(); +led.connect( timer, 'timeout()', 'toggle()' ); + +timer.start( 500 ); + +led.show(); +application.exec(); |