title: using nfcpy and spi to connect PN532 to Rasperry Pi
body: <p>I have a PN532 NFC reader from sunfounder and a pi B3 and can't get nfcpy to work with it.</p>
  
  <p>The reader itself is connected correctly: I used libnfc to test and it is working completely fine and NFC tags are recognised perfectly. Listing the PN532 through spi works as well: <code>ls /dev/spi*</code> leaves <code>/dev/spidev0.0  /dev/spidev0.1</code></p>
  
  <p>But since I am more comfortable using python I'd love to use python.</p>
  
  <p>From the <a href="http://nfcpy.readthedocs.io/en/latest/modules/clf.html#module-nfc.clf.pn532" rel="nofollow noreferrer">docs</a> of nfcpy I know spi is somehow supported. </p>
  
  <p>But when trying to connect with nfcpy it seems to search infinitely for a device. As described in the <a href="http://nfcpy.readthedocs.io/en/latest/topics/get-started.html" rel="nofollow noreferrer">docs</a>, I tried to connect to the PN532:</p>
  
  <pre><code>import nfs
  clf = nfc.ContactlessFrontend()
  assert clf.open('tty:AMA0:pn532') is True
  </code></pre>
  
  <p>I tried various different inputs instead of 'tty:AMA0:pn532' but none work.</p>
  
  <p>If anybody has an idea to read some uids from nfc tags in this setup I would really appreciate the help!</p>