Check that the AIN0 and AIN1 pins of the comparator are accessible on the Mega board.
You can start a conversion in the ISR, but this may interfere with other analogRead's. I'd simply poll the comparator flag and proceed as required.
Check that the AIN0 and AIN1 pins of the comparator are accessible on the Mega board.
You can start a conversion in the ISR, but this may interfere with other analogRead's. I'd simply poll the comparator flag and proceed as required.