Timeline for How can I change SPI ports on an Arduino?
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 24, 2023 at 11:32 | comment | added | Ralph | It will be overwritten, no problem, as long as you know which section was the old message and which is new. And make sure you know if the read has failed to fetch anything. | |
| S Jun 24, 2023 at 11:29 | history | suggested | Juraj | CC BY-SA 4.0 | the answer is specific for Arduino Uno/Nano/Mini |
| Jun 24, 2023 at 10:54 | comment | added | insipidintegrator | Hi @Ralph, hope you don't mind one last question: if I write if(radio.available()) radio.read(msg, 8*sizeof(char));, does msg have to be initialised as an empty string, or can I run this in a loop and msg will be successively overwritten? Thanks | |
| Jun 24, 2023 at 8:01 | review | Suggested edits | |||
| S Jun 24, 2023 at 11:29 | |||||
| Jun 24, 2023 at 7:32 | comment | added | insipidintegrator | Thanks a lot. You saved my day! | |
| Jun 24, 2023 at 7:32 | vote | accept | insipidintegrator | ||
| Jun 24, 2023 at 7:21 | comment | added | Ralph | Yes, that's the hardware SPI. Otherwise you would need to implement SPI in your code. nRF24l01 only sends data to MISO when the master requests so and gives clock pulses in the SPI clock. | |
| Jun 24, 2023 at 7:18 | comment | added | insipidintegrator | So I'll still read through the MISO(12) right? | |
| Jun 24, 2023 at 7:09 | history | answered | Ralph | CC BY-SA 4.0 |