Klare Sache für einen Mikrocontroller...

siehe https://www.mikrocontroller.net/articles/AVR-Tutorial

MfG Urs