Is the UART transmission rate you set on the Teensy the same you use on Bela? The code linked above receives at 9600baud.

    Yes. But I changed it to a higher rate and it works fine. 9600 is a bit slow these days.
    One thing I do note now, and I've yet to look into this in detail, is that more data is coming in than I want.
    It might be a retriggering issue like key bounce. I'm not sure yet.

    3 years later

    janklug giuliomoro
    Im trying to do the same, import serial data from arduino to a pd patch flashed on Bela. i tried to build the above render.cpp to the 8th example with the custom render but i got some errors like :
    no matching function for call to 'Bela_createAuxiliaryTask' column: 27, line: 220
    use of undeclared identifier 'libpd_get_sys_soundin'; did you mean 'get_sys_soundin'? column: 11, line: 280
    use of undeclared identifier 'libpd_get_sys_soundout'; did you mean 'get_sys_soundout'? column: 12, line: 281

    Could someone post a working solution, or guide me to make it work?