i am trying to wrap my head around https://github.com/micropython/micropython/blob/master/drivers/sdcard/sdcard.py but i have a hard time to figure out which calls are interrupt driven and which are sequential
i want to understand, if i were to drop a script on the SDCard (a picoweb server in my case) and i want to use the SPI to drive some APA102, i need to use another CS pin for them.
And I have all wired up already but i am not sure how i may interfere with SDCard SPI or if there is a methode inside the SDCard.py available to ask if i can use the SPI for a brief moment.
I need to shovel 1200Bytes + some dummy bytes without interruption through the SPI but i need to load them from the SD first and don't want to send bullshit to the SDCard just because their CS is still active.
EDIT: ... my brain just clicked ... i can check the state of the SDCard assigned CS pin before sending my data but i want to be sure that nothing will interrupt my sequence or accidentially switches to the SDCard while i shift my bytes out
maybe if i get my head around the filesystem and SD card code i could maybe rewire the MISO of the SD to the MOSI of the APA102s and stream the data directly into the LEDs XD
i am trying to wrap my head around https://github.com/micropython/micropython/blob/master/drivers/sdcard/sdcard.py but i have a hard time to figure out which calls are interrupt driven and which are sequential
i want to understand, if i were to drop a script on the SDCard (a picoweb server in my case) and i want to use the SPI to drive some APA102, i need to use another CS pin for them.
And I have all wired up already but i am not sure how i may interfere with SDCard SPI or if there is a methode inside the SDCard.py available to ask if i can use the SPI for a brief moment.
I need to shovel 1200Bytes + some dummy bytes without interruption through the SPI but i need to load them from the SD first and don't want to send bullshit to the SDCard just because their CS is still active.
EDIT: ... my brain just clicked ... i can check the state of the SDCard assigned CS pin before sending my data but i want to be sure that nothing will interrupt my sequence or accidentially switches to the SDCard while i shift my bytes out
maybe if i get my head around the filesystem and SD card code i could maybe rewire the MISO of the SD to the MOSI of the APA102s and stream the data directly into the LEDs XD