This repository provides an Atmel Studio solution with a bare metal code example for an LED dimming implemented using a PWM signal. The example demonstrates the basic functionality of Timer/Counter ...
The LED and push-buttons are connected to the Pi via a breadboard. The Raspberry Pi 3 has a pulse-width modulator. A version of this driver which makes use of it can be accessed in the hw-pwm branch.