Arduino SPI interface as USBasp programmation and Wifi usable

Hi,

does SPI interface could be used for USBASP programmation and also be able to communicate with a IC, like a WiFi Microchip IC?

If I'm right I can program my sketch with a USBASP programmer. After I have programmed it, could arduino use the SPI interface?

Thank you.

If I understand clearly, you want to program Arduino via ISP with USBasp programmer, then of course it works and after upload you could use SPI.

The arduino can communicate with SPI devices - no matter how you program it.

When programming by ISP/SPI and there are other things on those pins, you need to keep a few things in mind:

  • Nothing on any of the SPI pins should have anything that draws much current from the pin itself, like LEDs and stuff.
  • Since you're powering the device off the USBASP when programming it, make sure that, while it's being programmed, none of the connected devices are trying to draw a bunch of current.
  • Everything else on the SPI bus must use a CS pin (otherwise it'll think you're talking to it when you try to program the chip... and try to answer).