How to set programmable gain on atmega32u

I read that Arduino pro micro has a 32u controller that has a 200x programmable gain on its analog pins.
I wanted to use a k thermocouple (the that came with my UNI-T tester).

I haven't been able to find any examples using the programmable gain, but the datasheet says it has it, sooo... any clues?

Read sections 24.8 and 24.9, Table 24-4, in the 32u4 datasheet.
For the gains, you have to use specific pairs of pins for the different gains.
Don't know how you'd code for that.

I suppose Direct Port Manipulation of the addresses could work.

thanks :slight_smile:
I'll dig into it this weekend and see if I manage a working example