]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
rm debug
authorbrentru <brent@adafruit.com>
Mon, 20 May 2024 16:53:36 +0000 (12:53 -0400)
committerbrentru <brent@adafruit.com>
Mon, 20 May 2024 16:53:36 +0000 (12:53 -0400)
src/adafruit_blinka/microcontroller/generic_agnostic_board/pin.py

index 1f6818e64c750c1a9e85984cbe718cad42a2daae..cb21e06e29b3a560bd0ed91170bea5214a14833f 100644 (file)
@@ -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