mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2026-04-25 08:23:53 +00:00
Try and import the right compat...
And remove all the nonsense you re-factored into PiPin...
This commit is contained in:
@@ -8,11 +8,6 @@ str = type('')
|
||||
|
||||
import os
|
||||
from weakref import proxy
|
||||
from threading import RLock
|
||||
try:
|
||||
from weakref import WeakMethod
|
||||
except ImportError:
|
||||
from .compat import WeakMethod
|
||||
|
||||
import pigpio
|
||||
|
||||
@@ -170,8 +165,6 @@ class PiGPIOPin(PiPin):
|
||||
self._pull = 'up' if factory.pi_info.pulled_up(self.address[-1]) else 'floating'
|
||||
self._pwm = False
|
||||
self._bounce = None
|
||||
self._when_changed_lock = RLock()
|
||||
self._when_changed = None
|
||||
self._callback = None
|
||||
self._edges = pigpio.EITHER_EDGE
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user