Hi everybody,
I did search for the declaration of the function pinMode() for AVR-cores. But had no luck so far.
I guess that this function belongs to the core-files which are located in
C:\Users...\AppData\Local\Arduino15
But maybe I am wrong.
I did find this
void FirmataClass::attach(uint8_t command, ::callbackFunction newFunction)
{
switch (command) {
case ANALOG_MESSAGE:
currentAnalogCallback = newFunction;
break;
case DIGITAL_MESSAGE:
currentDigitalCallback = newFunction;
break;
case REPORT_ANALOG:
currentReportAnalogCallback = newFunction;
break;
case REPORT_DIGITAL:
currentReportDigitalCallback = newFunction;
break;
case SET_PIN_MODE:
currentPinModeCallback = newFunction;
break;
case SET_DIGITAL_PIN_VALUE:
currentPinValueCallback = newFunction;
break;
}
}
the function names have "callback" as part of the name.
Now I am puzzled.
I did expect to find a simple
void pinMode(......
but maybe I am completely wrong about that.
My final question I wanted to answer to myself by looking nto the source-code is:
If IDE is adjusted to Arduino-Uno (=AVR-core)
Das a function-call like
pinMode(A0, INPUT);
where A0 is the analog input.
configure the IO-pin as digital input? Or will the IO-pin still be reading in analog values?

