I've a strange behaviour in Arduino IDE 2. In a single sketch the function
pinMode() (as well as
OUTPUT, etc.) is not known to the programm and the related functionality does not work. The sketch may be compiled just fine btw.
In another sketch with the exact same logic there is no problem with
pinmode() as well as with the related functionality. These things are declared in
Arduino.h. Usually this file is included implicitly. Would it help to include
Arduino.h explicitly and how would I have to do this?