Hello,
Sorry for the trivial question, but I'm wondering what the -correct- way to use 'protected' functions (ie. digitalPinToPort()) in my sketch is. I thought I should just be able to include the right headers and it would work, but I must be doing something wrong... Thanks.
Josh
What did you try, and what results did you get?
You can refer to the source to digitalRead/digitialWrite in wiring_digital.c to see how they are used.
Sorry, I realize now how vague that was. I thought all I needed to do was include "Arduino.h", but I now realize I just needed to #include "pins_arduino.h"... Sorry!
Josh