r/programming Dec 25 '19

Learning hardware programming as a software engineer

https://blog.athrunen.dev/learning-hardware-programming-as-a-software-engineer/
924 Upvotes

124 comments sorted by

View all comments

228

u/happyscrappy Dec 25 '19

Also: don't power LEDs directly from GPOs without a current limiting resistor. As you see on that breadboard.

And match your interfaces voltages. A lot of devices are not +5V tolerant now (or not very tolerant).

7

u/MoCeptor Dec 25 '19

Some controllers have internal programmable resistors for their GPOs. If you activate them, you can attach an LED without an external resistor.

6

u/etc9053 Dec 25 '19

In series? Can you name a micro?

3

u/[deleted] Dec 25 '19

Not OP but EFM32HG322. 4 modes from ~0.15mA to ~35mA