Hello Teensy Tinkerers,
I recently got the teensy, and am working on a project to create modular buttons that can attach to each other in a multitude of fashions.
I have most all of the design down, and have figured out how to achieve this.
The answer: Using ATTiny85 per module, and communicating to the master (Teensy 3.5).
And so far, development is working dandy:
I got the Teensy 3.5 programming, and succesfully SENDING data out to the ATTiny, and the ATTIny, depending on the amount of bytes, is flashing an LED so many times.
However, when trying to Request data from it, it doesn't trigger the function on the ATTiny slave (Tried many diff LED indications if the function is triggering, and sadly, it is not.)
Here is the GIST:
https://gist.github.com/anonymous/8d8b38a7e703fa75a33a453424f15f85
Please let me know wtf im doing wrong here... I've got sending data working, why does requesting it from the dang thing total shit..
BTW the response i get when testing this in the Serial Monitor looks like this:
As you can see, something is wrong, it apparently /does/ get a response back, but it's always 255??? The dang OnRequest function definetly isn't triggering!
I recently got the teensy, and am working on a project to create modular buttons that can attach to each other in a multitude of fashions.
I have most all of the design down, and have figured out how to achieve this.
The answer: Using ATTiny85 per module, and communicating to the master (Teensy 3.5).
And so far, development is working dandy:
I got the Teensy 3.5 programming, and succesfully SENDING data out to the ATTiny, and the ATTIny, depending on the amount of bytes, is flashing an LED so many times.
However, when trying to Request data from it, it doesn't trigger the function on the ATTiny slave (Tried many diff LED indications if the function is triggering, and sadly, it is not.)
Here is the GIST:
https://gist.github.com/anonymous/8d8b38a7e703fa75a33a453424f15f85
Please let me know wtf im doing wrong here... I've got sending data working, why does requesting it from the dang thing total shit..
BTW the response i get when testing this in the Serial Monitor looks like this:
Code:
Sent out byte: 0
returned # bytes: 1
Got Bytes back: 255
Sent out byte: 1
returned # bytes: 1
Got Bytes back: 255
Sent out byte: 5
returned # bytes: 1
Got Bytes back: 255
As you can see, something is wrong, it apparently /does/ get a response back, but it's always 255??? The dang OnRequest function definetly isn't triggering!