Understanding the capacitors in an op amp circuit
The 1uF capacitor forms a simple low-pass filter with th 4.7K to filter the PWM square wave from the microcontroller.

The 100nF cap in parallel with 4.7K does not do much- it prevents erosion of the op-amp phase margin due to input and stray capacitance on the inverting input.