speed to argument
This commit is contained in:
parent
960588f527
commit
348d8a65f7
@ -4,12 +4,12 @@ import RPi.GPIO
|
||||
|
||||
class AD7843(object):
|
||||
"""AD7843 class"""
|
||||
def __init__(self, width, height, int_pin=None, callback=None, spi=0):
|
||||
def __init__(self, width, height, int_pin=None, callback=None, spi=0, speed=2000000):
|
||||
self.width = width
|
||||
self.height = height
|
||||
self.spi = spidev.SpiDev()
|
||||
self.spi.open(spi, 0)
|
||||
self.spi.max_speed_hz = 2000000
|
||||
self.spi.max_speed_hz = speed
|
||||
self.spi.mode = 0
|
||||
self.correction = {
|
||||
'x': 364,
|
||||
|
Loading…
Reference in New Issue
Block a user