p5-serial / p5.serialserver

Server for use with p5.serialport
https://p5-serial.github.io/p5.serialserver
MIT License
158 stars 68 forks source link

Can ArrayBuffer data be sent? #58

Open owenmcateer opened 4 years ago

owenmcateer commented 4 years ago

Hello, First of all, I'm loving the library it's amazing!

I'm not sure if this is a question or a feature request. I want to be able to send an ArrayBuffer of pixel data over serial to an LED matrix connected vai an Arduino.

I've created this sketch and Arduino code but just can't get the ArrayBuffer data to be received and/or processed correctly. P5 sketch: https://editor.p5js.org/owenmcateer/sketches/mY4FOIUZ I've left some comments in the sketch to explain whats going on. Arduino code: https://gist.github.com/owenmcateer/1151febe57b7bd971255cfef2f0a2e06 (I have tested and confirmed this Arduino code to be working using glediator(a led display animation program that is sent over serial connection, glediator uses an end line market of \1))

Any help to point me in the right direction would be great. Thank you.