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 55# This example is adapted in part from micropython:
66# https://github.com/micropython/micropython/pull/6894/files
77
8- import adafruit_pioasm
9- import board
10- import rp2pio
118import array
12- import digitalio
9+ import rp2pio
10+ import board
11+ import adafruit_pioasm
1312
1413
1514class IncrementalEncoder :
@@ -111,7 +110,7 @@ def value(self):
111110
112111old_value = None
113112while True :
114- gen ()
113+ gen () # pylint: disable=undefined-variable
115114
116115 value = encoder .value
117116 if old_value != value :
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ def baudrate(self):
4343 return self .pio .frequency // 8
4444
4545 @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
4848
4949 @property
5050 def in_waiting (self ):
@@ -55,5 +55,5 @@ def read(self, n):
5555 n = self .pio .readinto (b )
5656 return b [:n ]
5757
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