Modify digitalWrite

Yes. You can't use C++ objects in a C (.c) source file. You could probably rename 'wiring_digital.c' to 'wiring_digital.cpp' but then you will have to remove the functions from the 'extern "C"' block in Arduino.h

2 Likes