The first call of sizeof(msg2) returns the amout of memory the array is using, whereas the second call sizeof(msg2[0]) returns the amout of memory one element is using. Dividing these two returns the...
Type: Posts; User: Timon
The first call of sizeof(msg2) returns the amout of memory the array is using, whereas the second call sizeof(msg2[0]) returns the amout of memory one element is using. Dividing these two returns the...
This seems to be the issue.
I set up the buildin LED to toggle(third channel) when the teensy is reading data like you suggested and it seems like it only collects the data "every four bytes".
...
@BriComp I really appreciate you taking the time to help me :)
Its a leftover of a previous iteration of the code that i forgot to delete.
I probably should have listed all the...
Thank you for you effort @BriComp !
Unfortunately there seems to be no difference but I appriciate you help.
The arduino code is nothing special but if it helps:
int msg1[] = {0x00, 0xB3 , 0x11, 0x05, 0xF5, 0x23};
int msg2[] = {0x02, 0xB2 , 0x14, 0x45, 0x45, 0x34, 0x45, 0x34};
void setup() {
...
Sorry, I didnt include all header files. I was hoping someone would spot an issue in my code without having to compile anything.
I rewrote a shorter version of my code for the teensy so it does...
Hi,
I am sending serial messages of different sizes from an arduino uno to a teensy 3.6 at 9600 Baud. The Teensy is then reading the first byte of the message, which is representing the data...