Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Where is DDRB etc defined on: November 20, 2012, 03:44:47 pm
Thanks for all the the replies very helpful.

Haven't had time to work out if that gives me access to PE2 on the 32U4 yet.
2  Using Arduino / Programming Questions / Where is DDRB etc defined on: November 19, 2012, 10:11:46 am
where are things like DDRB DDRD PORTD PORTB defined

they are used like this (taken from others code)
DDRD=0xFC;      // direction variable for port D - make em all outputs except serial pins 0 & 1
DDRB=0xFF;      // direction variable for port B - all outputs

PORTD = 0xFC;              // all outputs except serial pins 0 & 1
PORTB = 0xFF;              // turn on all pins of ports D & B


want to see what else I can access directly

eg is portE in 32u4 defined (Leonardo ) ?

Thanks in advance for any guidance
Pages: [1]