The combination of touchscreen and NFC module is quite useful for many situations. For example, you may build a simple signup system or an advanced billing system which is a little more complex.
The Waveshare touchscreen comes with a DVK512 chip which doesn’t support SPI master-slave architecture. This means we cannot use the PN532 with SPI at the same time. Fortunately, ITEAD PN532 provides various interfaces including SPI, I2C and UART. I’ll show you how to make PN532 over I2C work with Waveshare touchscreen together.
Firstly, you should connect Waveshare touchscreen to Raspberry Pi and ensure that it works properly. Detailed introductions can be found in their wiki and you may simply download and flash the Raspbian image provided by them. This is quite easy.
Finally, install libnfc and finish the configurations. The new Raspberry Pi 2 will be a little different, pay attention to that.
allow_autoscan = true allow_intrusive_scan = false log_level = 1 device.name = "Itead_PN532_I2C" # For Raspberry Pi 2, use i2c-1 device.connstring = "pn532_i2c:/dev/i2c-0"