PyEthernet and SD card
-
Hi,
Was checking PyGate document for PyEthernet module and noticed that ETH_MOSI connection of PyEthernet uses the same pin on WiPy as SD CLK card. Is it possible to use SD card and PyEthernet module together?
What are my options here?
-
Yea I dont know either. You would probably need to edit the library and build it into the firmware, while selecting the Pybytes variant. The readme https://github.com/pycom/pycom-micropython-sigfox has a guide on how to build the firmware from source. Let me know if you run into issues!
Gijs
-
@Gijs, is it possible to compile ksz8851 as a separate library with my modifications, so that I could use stock firmware with my Ethernet library? I would use pybytes firmware as a base and add lib to my code. Not sure how to do that?
-
Hi,
You should be able to rebind the SPI pins (MOSI, MISO and CLK) for the PyEthernet on your development module so there is no conflict, though that will not work with the current Ethernet library included in the Pygate firmware. You can compile a custom firmware where you change the pins, which should result in both modules working. There is not that much flexibility in the SD card pins I believe.If you change the lines here: https://github.com/pycom/pycom-micropython-sigfox/blob/Dev/drivers/ksz8851/ksz8851conf.h i believe it should work
Gijs