Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network_wiznet5k.py SPI id #106

Open
jay6621 opened this issue Mar 24, 2021 · 3 comments
Open

network_wiznet5k.py SPI id #106

jay6621 opened this issue Mar 24, 2021 · 3 comments

Comments

@jay6621
Copy link

jay6621 commented Mar 24, 2021

The link https://maixpy.sipeed.com/en/libs/machine/spi.html#parameters clearly states that 'id' for SPI allowed is 0 to 3 but example here under Network folder - network_wiznet5k.py has id: 4 , How? what is the right data ? I would love to help writing or developing Ethernet support for Maix Dock. Any Help is appreciated.

@H3adcra5h
Copy link

4 is the same as SPI.SPI_SOFT

@jay6621
Copy link
Author

jay6621 commented Mar 27, 2021

So, it is using software SPI ? How about using hardware SPI ? I couldn't find any pinout diagram for Maix Dock.

@H3adcra5h
Copy link

The documentation isn't so clear on this side.
You have 4 hw SPI devices.
SPI2 can only work in slave mode, but I read somewhere. maybe in the documentation, that the slave mode isn't implemented.
SPI3 is reserved the the flash.
SPI0 is the lcd, I think and
SPI1 is the SD card, but also not sure. If I use SPI1 the SD card isn't available.

So there is no free hw SPI device for the network.
Some interesting material can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants