int SPI?

Hello there!

I am having a problem with this SAMD21 board. *here is schematics:(http://kit.sciencein.cz/wiki/images/b/be/MainBoard_v2.0_RevB_SCH.png)

There are two SPI pins - "MISO" and "int MISO", for instance. In the attached code, I am controlling the devices connected to int SPI pins in setup and loop. In the OZONE2CLICKCalibrate / Measure, I am trying to run my Ozone sensor, but when I run it, SAMD21 will lag - it is big lag, I have to completly restart the device.

Is there any way to controll the SPI?

CANSAT_2.0_check.ino (25.4 KB)

Can you post a smaller code that compiles and exhibits the behaviour? 25 kB is a bit much to dig through :wink:

No experience with SAM based boards.

Asked another way, how did you get to such a large program without realizing one of your fundamental operations isn't working correctly. You should develop large application in small, incremental steps testing as you go. That way, when something breaks you can be pretty sure it was caused by the last change you made.