thomasmacpherson / piface

Everything piface
68 stars 35 forks source link

Emulator Pi Face detection is poor #3

Open tompreston opened 12 years ago

tompreston commented 12 years ago

Pi Face detection currently works on checking if the SPI bus exists in /dev/. If it doesn't then the Pi Face doesn't exist, if it does then the Pi Face exists. Even if it isn't plugged in.

What should happen is that emulator should make a request to the Pi Face over the SPI bus requesting a version string from the microchip (MCP17S23). I can't find a data sheet on this though so I don't know what command to send.

waynix commented 11 years ago

its an MCP23S17 not an MCP17S23 Datasheet:http://www.farnell.com/datasheets/12170.pdf But this device is not a processor, it is a 16 Bit I/O expander.

tompreston commented 11 years ago

This has been rectified in the latest version.