decode function - minimalistic ir decode setup
try to compile for various MCUs
improved green led timing (uses wdt)