Wifi kit 32 V2 Duty cycle and voltage in pin?

Hi,

I’m trying to get the following from my Heltec Wifi Kit 32 v2:

  • Duty cycle (PWM in %)
  • Voltage input from my USB power supply

What I have is a very simple readout of pin37, but if I read the documents correctly this show the voltage over the internal capacitor which is about 1.8V.

For the duty it should do a PWM readout of one of the pins, have no clue how to get it. Or if this even is possible.

Thanks!