An electronic compass using an ATMega32U4 microcontroller interfaced to an LSM303DLH accel/magnetomer IC and a Nokia 5110 LCD display. The sensor is driven through the TWI bus, and the LCD is driven through the SPI bus.
Layout of the PCB is done in Eagle, and the software targets the avr-gcc compiler.