Added pinMode override to prevent setting some pins as outputs