A question on port methods

KMOver50:
I did a simple test using this code:

int outport = 1;
int val = 0;

void setup() {
portMode(outport, OUTPUT);
}

void loop() {
portWrite(outport, val);
val = val + 1;
if (val > 255)
{
val = 0;
}
}

When trying to complile it, these are the error messages I got:

sketch_oct20a.ino: In function 'void setup()':
sketch_oct20a:5: error: 'portMode' was not declared in this scope
sketch_oct20a.ino: In function 'void loop()':
sketch_oct20a:9: error: 'portWrite' was not declared in this scope

We already stated that portWrite and portMode are not arduino defined functions, They don't exist in the Arduino supplied libraries, those errors are real, you have to convert to using the DDRx, PINx, and PORTx methods. See the examples in the link I posted.

Lefty