bighitbiker3
New member
Forgive me, but I am very very new to this. I am trying to get my Teensy and Daisy to communicate with Teensy and Daisyduino.
Daisy is the slave, Teensy master.
The problem I am having, is I am unable to get the Teensy to read the response from the slave. I can read the messages on the Daisy coming from the teensy, but when I try to respond with
The return value of the Teensy's `transfer` is always 255.
My suspicion, thanks to AI, is that it's a clock issue because I am able to get it to work with manual bit-banging. I am at a loss at how to further debug that though.
Any ideas/things to look for?
Daisy is the slave, Teensy master.
The problem I am having, is I am unable to get the Teensy to read the response from the slave. I can read the messages on the Daisy coming from the teensy, but when I try to respond with
C++:
if (digitalRead(SPI_CS_PIN) == LOW) {
// RESPONDING HERE
byte received = SPI.transfer(0x42);
receivedValue = received;
newData = true;
}
The return value of the Teensy's `transfer` is always 255.
My suspicion, thanks to AI, is that it's a clock issue because I am able to get it to work with manual bit-banging. I am at a loss at how to further debug that though.
Any ideas/things to look for?