Internal resistors on raspberry pi


#1

Hi - can anyone verify that internal resistors are enabled via Cayenne when connecting to GPIO inputs? …or share suggestions for safely connecting if not? Thanks


#2

Hello, I don’t know about Cayenne if it enables the internal resistance of the GPIO ports.
I thinks that you can do something like this:

import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)

Here you can read more: https://sourceforge.net/p/raspberry-gpio-python/wiki/Inputs/