compare digitalWrite to port manipulation

edit scope_test_due to compare API to port manipulation