Added compatability for 8MHz clock speeds

Changes are based off of the pololu arduino library, which had 8MHz support.