User Activity

I'm new to this, and I want to write a code to read External interrupt and glow an LED. And will the LED go OFF when the interrupt is cleared?  I'm using STM32F103 Discovery & Nucleo boards. And generating the code using STMCubeMX and compiling it us...