Daisy-24 example in C