Thek-Alarm
This is an alarm. When «leg 3» is disconnected from «gnd», it will sound an alarm (output is «leg 1» (connect to headphones or speaker as shown in this example: http://www.codebug.org.uk/learn/activity/93/musical-bug/). To stop the alarm, press «a» and «b» together. if «a» is is pressed for 2 seconds, a timer ist shown (all leds light up and one by one, they go out again). before all leds are out, it is possible to disconnect «leg 3» from «gnd» and re-connect it again without sounding the alarm. to put the alarm to sleep, press «b» for 2 seconds.