Does anyone know of a .NET library for the Scroll pHat?


#1

I’m interested in using my Scroll pHat with Windows IoT on my Raspberry Pi 2. I suppose I could work to create my own library to do this but I’d much rather use an existing one if possible.
Thanks!


#2

None exist that I’m aware of, and I’d be surprised if a library did!

There are, however, plenty of I2C examples which would help get you started. I was able to successfully drive a PiGlow from Windows IoT; the chip used on Scroll pHAT isn’t much more complicated.

https://ms-iot.github.io/content/en-US/win10/samples/I2CAccelerometer.htm

You can either look at the datasheet for the driver chip, or follow the code in the Python library to get an idea of how it should work.