3

Sorry for the very basic question. I am trying to set a built-in pullup on GPIO pins and it doesn't seem to be working. Hardware is Pi 3B and 4B (I tried on both), OS is Raspbian 10 (buster). The wiringPi pin 0 (BCM pin 17) is not connected to anything:

% gpio mode 0 input 
% gpio mode 0 up 
% gpio read 0 
0 
%

Should this pin not be reading back a 1 due to the pull-up? What am I missing?

2 Answers2

2

wiringPi pull-ups and pull-downs do not work on the Pi4B. The ways the pulls work has changed in the new BCM2711 SoC used in the Pi4B.

See this question.

As far as I know they do work correctly on the Pi3B (but I have not tested recently).

joan
  • 71,852
  • 5
  • 76
  • 108
0

set the pullups in config.txt or use raspi-gpio command.