Added macros for input mode. Made an example for toggling a LED.