Is there another way to do a DigitalWrite?

irethedo:
I have another bit of code that is getting a compile error on the following line:

PORTA = (PORTA ^ B00000001);

with a 'PORTA' was not declared in this scope ' error.

I am using an atmel chip with the Uno bootloader and if I change the board type to a mega, it compiles without error.

How can I set this up to load on my Uno without an error?

thanks

Some arduino boards don't have a PORTA like a Uno, some do like a mega. You might want to review this document to understand the arduino pins Vs port assignments for the basic Uno and Mega boards.
https://spreadsheets.google.com/pub?key=rtHw_R6eVL140KS9_G8GPkA&gid=0

Lefty