# What is right method to pass led info from processing to arduino

**URL:** <https://discourse.processing.org/t/what-is-right-method-to-pass-led-info-from-processing-to-arduino/8010>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [February 1, 2019, 12:53am UTC](https://discourse.processing.org/t/what-is-right-method-to-pass-led-info-from-processing-to-arduino/8010 "2019-02-01T00:53:58Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [February 2, 2019, 11:48am UTC](https://discourse.processing.org/t/what-is-right-method-to-pass-led-info-from-processing-to-arduino/8010/14 "2019-02-02T11:48:54Z")

</div>

so,  
atoi of that string might be not the right idea.  
and yes, that might be the most efficient protocol for this  
but can never be used via a terminal ( they all ascii )  
and actually i prefer the complete opposite way to do communication:

> [@Good practice for sending data from Arduino to Processing](https://discourse.processing.org/t/good-practice-for-sending-data-from-arduino-to-processing/6339/2):
>
> there are many ways, but for datasets i use CSV style, 1024,1024,1024,1024, per line what actually requires good documentation what data is what sensor… and it is faster insofar as the line sending and line catching via serial/USB ( you would send 4 lines ) takes more time as the string separation. ( your way also needs that value decoding… ) but there are many other way, the fastest still would be a byte stream ( not ASCII ) but i hate, as i can not read it in Arduino IDE terminal t…

---

_[View the full topic](https://discourse.processing.org/t/what-is-right-method-to-pass-led-info-from-processing-to-arduino/8010)._
