In Button.h: - unsigned int pressedStartTime; should be - unsigned **long** pressedStartTime; as millis() returns unsigned long