What pin is the green LED on the STM8S-Discovery connected to?
The LED is connected to pin PD0 on the STM8S105C6T6 on the STM8S-DISCOVERY.
Source: STM8S-DISCOVERY User manual
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow