+ port::init();
+
+ // Configure pins for I2C0.
+ port::set_af(port::PORTC, 8, 2);
+ port::set_af(port::PORTC, 9, 2);
+
+ i2c::configure(i2c::I2C0);
+
+ nvic::disable_irq(8); // I2C0
+
+ // Configure pin for the display's reset line.
+ gpio::set_direction(gpio::GPIOB, 1 << 16, gpio::Direction::Output);
+ port::set_af(port::PORTB, 16, 1);
+
+ // Configure upper right push button.
+ gpio::set_direction(gpio::GPIOA, 1 << 12, gpio::Direction::Input);
+ port::set_af(port::PORTA, 12, 1);
+ port::set_pull(port::PORTA, 12, port::Pull::Up);
+
+ enable_interrupts();