summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/timer/timer.js
blob: a124eadb86da24beb7fbacee0c8c1fb6cfebe646 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env kjscmd

var led = new KLed();
var timer = new TQTimer();
led.connect( timer, 'timeout()', 'toggle()' );

timer.start( 500 );

led.show();
application.exec();