From: brentru Date: Mon, 20 May 2024 16:53:36 +0000 (-0400) Subject: rm debug X-Git-Tag: 8.39.2^2~19 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/0a5ff29100196bd9a41bf6deee6c46e65f3ff3d5 rm debug --- diff --git a/src/adafruit_blinka/microcontroller/generic_agnostic_board/pin.py b/src/adafruit_blinka/microcontroller/generic_agnostic_board/pin.py index 1f6818e..cb21e06 100644 --- a/src/adafruit_blinka/microcontroller/generic_agnostic_board/pin.py +++ b/src/adafruit_blinka/microcontroller/generic_agnostic_board/pin.py @@ -80,7 +80,6 @@ class Pin: self.current_value = new_value def read(self): - print("\nread mode: ", self._mode) """Returns the pin's expected value.""" self.previous_value = self.current_value # perform a lookup on the pin_behavior dict to get the value @@ -88,10 +87,9 @@ class Pin: # is pin a pull up and pin is LOW? if self._pull == Pin.PULL_UP and self.current_value == False: - self.current_value = True + self.current_value = False # is pin a pull down and pin is HIGH? if self._pull == Pin.PULL_DOWN and self.current_value == True: - print("switching PDR to False") self.current_value = False return self.current_value