File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 5
5
# This example is adapted in part from micropython:
6
6
# https://github.com/micropython/micropython/pull/6894/files
7
7
8
- import adafruit_pioasm
9
- import board
10
- import rp2pio
11
8
import array
12
- import digitalio
9
+ import rp2pio
10
+ import board
11
+ import adafruit_pioasm
13
12
14
13
15
14
class IncrementalEncoder :
@@ -111,7 +110,7 @@ def value(self):
111
110
112
111
old_value = None
113
112
while True :
114
- gen ()
113
+ gen () # pylint: disable=undefined-variable
115
114
116
115
value = encoder .value
117
116
if old_value != value :
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ def baudrate(self):
43
43
return self .pio .frequency // 8
44
44
45
45
@baudrate .setter
46
- def baudrate (self , frequency ):
47
- self .pio .frequency = freqency * 8
46
+ def baudrate (self , frequency ): # pylint: disable=unused-argument
47
+ self .pio .frequency = freqency * 8 # pylint: disable=undefined-variable
48
48
49
49
@property
50
50
def in_waiting (self ):
@@ -55,5 +55,5 @@ def read(self, n):
55
55
n = self .pio .readinto (b )
56
56
return b [:n ]
57
57
58
- def readinto (self , buf ):
59
- return self .pio .readinto (n )
58
+ def readinto (self , buf ): # pylint: disable=unused-argument
59
+ return self .pio .readinto (n ) # pylint: disable=undefined-variable
You can’t perform that action at this time.
0 commit comments