I'm a dev new to raspberry pi helping someone out with their RPi project.
We have some basic code controlling an i2c bus via the smbus library and it runs fine on the RPi, but he'd like to get the code running on his Windows laptop just to see it running without errors there.
I'm not sure if this is possible, since I have an error on this line from inside the smbus2 module:
self.fd = os.open("/dev/i2c-{}".format(bus), os.O_RDWR)
The problem is that we're trying to run this on a Windows machine....there's no such things as /dev
on Windows.
Am I trying to do something impossible here, essentially making Linux-specific code compile error-free on Windows? I can comment this line out and have it compile without errors, but this feels moderately pointless.
How do you normally develop for the pi on Windows?
/dev
filesystem on Windows, you need a Linux kernel for that. – Dmitry Grigoryev Jan 18 '17 at 17:52