Pin input and Pull-up
Posted: Sat Feb 06, 2021 11:37 am
Hello to all,
so I am trying to figure out why this is not working, but I am running out of ideas.
I have a few pins that must be set as input and must have pull up on them.
Here is how I did it, but it doesnt work:
for (i = 0; i < inc; i++) {
pinMode(inpin, INPUT);
digitalWrite(inpin, INPUT_PULLUP); // activate 20k pull-up
I have tried then just with one pin and its the same. I am using Blue pill STM32F103C8.
so I am trying to figure out why this is not working, but I am running out of ideas.
I have a few pins that must be set as input and must have pull up on them.
Here is how I did it, but it doesnt work:
for (i = 0; i < inc; i++) {
pinMode(inpin, INPUT);
digitalWrite(inpin, INPUT_PULLUP); // activate 20k pull-up
I have tried then just with one pin and its the same. I am using Blue pill STM32F103C8.