More complete stick delay example code.