Updated trigger pins to use analog inputs and used defines for speed