cancel
Showing results for 
Search instead for 
Did you mean: 

How to connect led?

Krafti
Associate

I just bought stm32 and i cant find any guides how can i enable led. I flashed pin PB7 so that it would output current

1000008815.jpg

2 REPLIES 2
STTwo-32
ST Employee

Hello @Krafti @and welcome to the ST Community. 
This is not an ST official evaluation board but it is a Board based on an STM32 MCU. So, you should ask the manufacturer of this board about the connections and the board layout. 
‘Best Regards.
STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

TDK
Super User

You need to connect the LED so toggling the pin completes the circuit.

Any of these:

[PB7] --> [LED] --> [RESISTOR] --> [GND] [PB7] --> [RESISTOR] --> [LED] --> [GND] [VCC] --> [LED] --> [RESISTOR] --> [PB7] [VCC] --> [RESISTOR] --> [LED] --> [PB7]

Make sure the LED polarity is correct and resistor is sized such that the LED gets around 3 mA, or whatever the data sheet says is safe.

If you feel a post has answered your question, please click "Accept as Solution".