Raspberry PI 2, PIFACE Digital 2 and Windows 10 for IoT
theBreadboard
After reading a lot of feedback and comments in various forums it was apparent that there are many folks that want to be able to use simple add-ons like a PiFace Digital 2 board (PFD2) on their PI rather than building custom circuits on bread board, and for one off projects and experimentation or education, this is an excellent approach With this in mind I wrote a Library for the MCP23S17 chip (The core of the PFD2) for windows 10 IoT, it provides many functions needed to talk to a MCP23S17 SPI to 16port expander and this is usable in your projects I then added a demo UI application to make it able to drive the PiFace Digital board. This is a great way to see how to use the library and also learn a little more on programming in C# for the PI on windows 10 for IoT You can simply replace the UI with your app if you want and just keep the library I have posted the code and more info on the E14 community site here: http://www.element14.com/community/community/raspberry-pi/blog/2015/08/03/piface-digital-ii-on-a-pi2-windows-10-iot-and-a-cool-demo Use parts from the code as you want, it’s an education tutorial so go educate yourself :) If you find bugs or want to suggest additional features etc. I will be expanding this over time so leave a comment and I’ll see what I can do Data sheets links: MCP23S17: http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf ULN2803: https://www.ti.com/lit/ds/symlink/uln2803a.pdf PFD2: http://www.element14.com/community/docs/DOC-69001/l/piface-digital-2-for-raspberry-pi ... https://www.youtube.com/watch?v=GaB4uUzv6w4
364099585 Bytes