Friday, February 13, 2009

Cricket timer

Here's a simple program to make a timer with an LED. A couple of my 9th grade students applied and modified my base program a bit to get theirs to work with a switch you can see in the video.

global [number]

to start
loop [
if switcha [

to count
setnumber 1
repeat 60 [
display number
wait 10
setnumber number + 1
if switcha [wait 5 stop]