- flags |= gpiod.LINE_REQ_FLAG_ACTIVE_LOW
- elif pull == self.PULL_DOWN:
- flags |= gpiod.LINE_REQ_FLAG_ACTIVE_HIGH
- else:
- raise RuntimeError("Invalid pull for pin: %s" % self.id)
+ raise NotImplementedError(
+ "Internal pullups not supported in libgpiod, "
+ "use physical resistor instead!"
+ )
+ if pull == self.PULL_DOWN:
+ raise NotImplementedError(
+ "Internal pulldowns not supported in libgpiod, "
+ "use physical resistor instead!"
+ )
+ raise RuntimeError("Invalid pull for pin: %s" % self.id)