final code for Mechanical Cartoon, Study2

used Interrupt and Debounce