1

I am running the blinking LED program with stm32duino, and an STM32. By trial and error, and a bit of debugging, I have worked out the following:

  • pin C13 blinks as well as the built in LED (except my external LED is on the built-in LED is off)
  • the constant LED_BUILTIN equals 17

I found this pinout: https://stm32duinoforum.com/forum/wordpress/wp-content/uploads/2016/07/The-Generic-STM32F103-Pinout-Diagram.pdf

enter image description here

But it says nothing about C13 being pin 17.

Does anybody know where to look to find out where the arduino pins line up to the codes on the board?

asked Jul 17, 2020 at 14:20
2
  • In the source code. Look around for the variants in the source code (on github?) and find where the pinouts are. I can't tell you what file to look in, because all cores are different. Commented Jul 17, 2020 at 14:35
  • regarding your external LED ... read the notice about the pins with the warning symbol (yellow triangle with an exclamation mark) Commented Jul 17, 2020 at 15:42

1 Answer 1

1

OK if this helps anybody, they give you constants for every pin that look like PC14 for the one that says C14, so you don't need to worry about the integers that they assign to the pins.

I mean there are constants named for the yellow boxes on the above diagram.

answered Jul 17, 2020 at 15:05

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.