Hello!
I am trying to add new function "MydigitalWrite" to wiring_digital.c () (\arduino-0017\hardware\cores\arduino)
When I try to compile:
In function 'void loop()':
error: 'MydigitalWrite' was not declared in this scope
How to win this problem?
There should be no reason to modify the core function in the wiring library.
Just write your new function directly following the loop() function in your sketch:
void MydigitalWrite( int argument1, int argument2, etc.)
{
//your new code
// more code
}
Then you can use your new function anywhere in the setup or loop function of your sketch.
Lefty