Switch or anything alias PORTx.x not pin,
then you can make set/reste switch/ led anything, should become hi/low state on those ports.
Like so.
Funny thing when i wrote config port etc then it didn't work,
but when DDRx = &B11111111 for LEDs and switches and then calling leds by "set/reset" and switches
by "if port = x" or " if switch = x" it was perfect, dunno why.
The config port seems like doesnt work, properly at least.
↧