SPI library for PYNQ-Z2

Hello everyone, I am a newbie to PYNQ-Z2 a few days ago and have only a little knowledge about vivado. Currently I am being asked to use PYNQ-Z2 to perform data transmission for lora Sx1278. Due to limited knowledge and urgent time, I plan to stop using available SPI libraries in python to solve the problem. However, when I started working, I discovered that most of the SPI libraries I found do not exist or are not available. Can anyone here recommend some available SPI libraries that can be used? Or documents that can help me set up an SPI communication library myself. Because the documents about PYNQ-Z2 are quite few and I cannot find them. I would be very grateful if someone could help me solve this problem.

Hi @ntduet,

Welcome to the PYNQ community.

There is no mention on how you plan to connect the SPI module. But, I assume it is via Pmod.
You can find the SPI library documentation here: Microblaze Library — Python productivity for Zynq (Pynq)

You can use the base overlay to communicate with it, also search for the IOP documentation.

Mario