updated firmware core.ino