OPEnSLab-OSU / ednaServer

GNU Affero General Public License v3.0
4 stars 0 forks source link

Allow TPIC and Wifi module to use SPI pins at the same time. #56

Open NathanJesudason opened 1 year ago

NathanJesudason commented 1 year ago

Describe the feature you'd like The question is whether we can disable interrupts during times that we write to the shift register so that the wifi module is buffered.

AC:

NathanJesudason commented 1 year ago

Wifi module has a chip select pin, so we should be able to use that so that the wifi module and shift register https://learn.adafruit.com/assets/110927

NathanJesudason commented 1 year ago

for writing to shift register, disable interrupts, Keep CS pin high until we write, then we set it low, write to it then set CS pin high and re-enable interrupts for shift register.

We just need some chip select (GPIO 9, pin 21), SCK, MOSI, MISO