NUCLEO-F103RB pinout and pin declaration
Posted: Fri Mar 25, 2022 9:14 am
Hello.
I am new here, and I am looking for some help about the pinout of the NUCLEO-F103RB.
I am writting code in Arduino IDE and I want to use some digital inputs and outputs.
But I dont know wich and also I dont know the names.
My project has an AD7606 adc in parallel mode (16bits),
so I need 16 inputs and some more for control signals
(a total of 19 inputs and 7 outputs).
While I was looking around I found these https://www.instructables.com/Quick-Sta ... duino-IDE/
where the guy remapped the pins (gave new easier names) and made a very simple header file


in the code he writes int a = pinMap(14);
and the library translates to:
int pinMap(int pin)
{
switch (pin)
{
case 1: return 2;
break;
case 2: return 3;
break;
case 3: return 4;
break;
etc. etc.
It look convenient but he made it for Nucleo-F401RE.
Do you think it is the same for NUCLEO-F103RB (it looks like the same)?
Thank you
I am new here, and I am looking for some help about the pinout of the NUCLEO-F103RB.
I am writting code in Arduino IDE and I want to use some digital inputs and outputs.
But I dont know wich and also I dont know the names.
My project has an AD7606 adc in parallel mode (16bits),
so I need 16 inputs and some more for control signals
(a total of 19 inputs and 7 outputs).
While I was looking around I found these https://www.instructables.com/Quick-Sta ... duino-IDE/
where the guy remapped the pins (gave new easier names) and made a very simple header file


in the code he writes int a = pinMap(14);
and the library translates to:
int pinMap(int pin)
{
switch (pin)
{
case 1: return 2;
break;
case 2: return 3;
break;
case 3: return 4;
break;
etc. etc.
It look convenient but he made it for Nucleo-F401RE.
Do you think it is the same for NUCLEO-F103RB (it looks like the same)?
Thank you