User Activity

Hi.I am working on microcontroller STM32L072KZ and STM32CubeMX.I am trying to set a value of one pin depending on comparator value. I do not know how to do it in STM32CubeMX.I want to do it using only hardware, not software.Can anyone help me?