A simple compass, using the HMC5883L chip, on a breadboard with an Arduino Nano and an OLED screen. Compass connection is over I2C, the screen uses SPI. I decided not to use a library for the HMC5883L but keep it
Arduino compass (HMC5883L) with OLED screen
