Loading poolpay/card/Pirc522CardReader.py +5 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,11 @@ from poolpay.card.CardReader import CardReader class Pirc522CardReader(CardReader): def __init__(self) -> None: self._reader = RFID(pin_irq=None) # Open this on SPI1 bus, because SPI0's pins are taken by the LCD. # Technically, it might be possible to connect both LCD and Card Interface to # the same SPI0 bus (making one device=0, and the other device=1), # but I think that by just separating the buses, it should be less of a hassle. self._reader = RFID(bus=1, pin_irq=None) def read_id(self) -> int: # TODO Cleanup implementation Loading Loading
poolpay/card/Pirc522CardReader.py +5 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,11 @@ from poolpay.card.CardReader import CardReader class Pirc522CardReader(CardReader): def __init__(self) -> None: self._reader = RFID(pin_irq=None) # Open this on SPI1 bus, because SPI0's pins are taken by the LCD. # Technically, it might be possible to connect both LCD and Card Interface to # the same SPI0 bus (making one device=0, and the other device=1), # but I think that by just separating the buses, it should be less of a hassle. self._reader = RFID(bus=1, pin_irq=None) def read_id(self) -> int: # TODO Cleanup implementation Loading