so here is a weird question. i tried to search for it but ‘setup’ is so common that i never got what i was looking for.
basically i have a function that transfers data via SPI1. If i place the code in the setup() function i always get 0x00 as a response. If i move the same call to the loop() function i get what I expect.
can i not call things like SPI1.transfer() in setup(), only loop?
Sorry if this is an obvious question, but I just dont understand why it doesnt work in setup.
Also, my serial comms do not work in setup(), but work fine in loop().