Arduino Mega Square Wave Generator