Archive for 26 Sep 2012

LudoMTR (Part 3)

Part 1, 2, 3, 4, 5, 6 Code The code for the driver is pretty simple. The set up section contains the instructions for setting PORTB and PORTD selected pins as output pins. /* Set ports directions */ DDRD |= (maskD); DDRB |= (maskB); Some place in the skecth we’ll find a function which will be responsible for switching PRTB and […]