I think you have to include <avr/io.h> which brings in the correct *.h file for your chip.
for example I am using a uno and avr/io.h has this line in it:
#elif defined (AVR_ATmega328P)
iom328p.h has all the ports,registers and pins defined so you can use DDRC,PORTA, PINC etc… without getting an error. You should get familiar with that include file.
the error was that i didnt include the declaration inside the setup
Look at my code.
It does exactly that. Switching both at the same time, one being LOW and one being HIGH.
Because both switch at the same time, on of them has to be set to HIGH on startup, I chose A0.
ok i tested yes , it does exactly that thanks.
understood what you telling me , i will start to play with it , just not need the toggle technique , i have to change them adhok .
I have a function that opens A and Closes B if the parameter is A
if its B closes A opens B