<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Isadora to arduino]]></title><description><![CDATA[<p dir="auto"><span style="font-size:10pt">Hello,</span></p>
<div style="font-family:Arial, Verdana;font-size:10pt;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal">Working with a friend and he has been helping me set up my arduino to talk to Isadora. There is a problem in arduino 1.0.5 as the BYTE keyword is no longer supported and I am wondering what would go in its place. In the following sketch, I am trying to activate a movie by pressing a button that is connected to digital pin 2\. I see the state change in the Arduino serial window, but when I change over to Isadora, after setting up serial communication, nothing changes.</div>
<div style="font-family:Arial, Verdana;font-size:10pt;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal">This is the arduino sketch before I institute the change from <span style="font-size:13.3333330154419px">  Serial.print(i+97,BYTE); //send the port number to the arduino suggested Serial.write(). I am unclear as to what should be contained within the parentheses following the Serial.write call. Any Suggestions? I currently have Serial.write(13); and I am getting clean serial output to the arduino serial window, but again, when I switch over to Isadora and take initiate serial I do not get any response. I have included the arduino sketch in the body and the izzy patchas an attachment.</span></div>
<div style="font-family:Arial, Verdana;font-size:10pt;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal"><span style="font-size:13.3333330154419px"> Thank you,</span></div>
<div style="font-family:Arial, Verdana;font-size:10pt;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal"><span style="font-size:13.3333330154419px">Michael</span></div>
<div>
<div><span style="font-size:13.3333330154419px">/*</span></div>
<div><span style="font-size:13.3333330154419px">This should enable you to read all the arduino pins in Isadora.</span></div>
<div><span style="font-size:13.3333330154419px">Edit the ones you don't need out of this script.</span></div>
<div><span style="font-size:13.3333330154419px">*/</span></div>
<div><span style="font-size:13.3333330154419px">  
</span></div>
<div><span style="font-size:13.3333330154419px">int delval=100; //set this to adjust the polling value</span></div>
<div><span style="font-size:13.3333330154419px">int value;</span></div>
<div><span style="font-size:13.3333330154419px">int anports=5; //no of analog ports to read - note 0 means you will read one port. To skip reading any ports comment out the lop below</span></div>
<div><span style="font-size:13.3333330154419px">int digports=13; //as above but with digital ports</span></div>
<div><span style="font-size:13.3333330154419px">  
</span></div>
<div><span style="font-size:13.3333330154419px">  
</span></div>
<div><span style="font-size:13.3333330154419px">void setup()</span></div>
<div><span style="font-size:13.3333330154419px">{</span></div>
<div><span style="font-size:13.3333330154419px">  
</span></div>
<div><span style="font-size:13.3333330154419px">  Serial.begin(9600); //you can change the baud rate</span></div>
<div><span style="font-size:13.3333330154419px">}</span></div>
<div><span style="font-size:13.3333330154419px">  
</span></div>
<div><span style="font-size:13.3333330154419px">void loop()</span></div>
<div><span style="font-size:13.3333330154419px">//comment out this loop to avoid reading any analog ports</span></div>
<div><span style="font-size:13.3333330154419px">{</span></div>
<div><span style="font-size:13.3333330154419px">  for (int i=0; i&lt;=anports; i++)  {</span></div>
<div><span style="font-size:13.3333330154419px">  value = 1000+analogRead(i); // add 1000 to the value of the pin to ensure 4 digits.</span></div>
<div><span style="font-size:13.3333330154419px">  Serial.print(i,DEC); //send the port number</span></div>
<div><span style="font-size:13.3333330154419px">  Serial.print(value); //send the value</span></div>
<div><span style="font-size:13.3333330154419px">  Serial.println(); //send the eom</span></div>
<div><span style="font-size:13.3333330154419px">   </span></div>
<div><span style="font-size:13.3333330154419px">  }</span></div>
<div><span style="font-size:13.3333330154419px">  //comment out this loop to avoid reading any digital ports</span></div>
<div><span style="font-size:13.3333330154419px">    for (int i=0; i&lt;=digports; i++)  {</span></div>
<div><span style="font-size:13.3333330154419px">  value = digitalRead(i); // add 1000 to the value of the pin to ensure 4 digits.</span></div>
<div><span style="font-size:13.3333330154419px">  Serial.print(i+97,BYTE); //send the port number</span></div>
<div><span style="font-size:13.3333330154419px">  Serial.print(value); //send the value</span></div>
<div><span style="font-size:13.3333330154419px">  Serial.println(); //send the eom</span></div>
<div><span style="font-size:13.3333330154419px">    }</span></div>
</div>
<p dir="auto"><a href="/uploads/files/FileUpload/af/27d2ca-arduinotoisadora.izz">27d2ca-arduinotoisadora.izz</a></p>
]]></description><link>https://community.troikatronix.com/topic/1806/isadora-to-arduino</link><generator>RSS for Node</generator><lastBuildDate>Mon, 05 Oct 2026 15:33:06 GMT</lastBuildDate><atom:link href="https://community.troikatronix.com/topic/1806.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Mar 2015 14:20:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Isadora to arduino on Wed, 04 Mar 2015 14:30:23 GMT]]></title><description><![CDATA[<p dir="auto">Dear All,</p>
<div>Figured it out, just had to eliminate the BYTE and enter the remaning i+97 into the parentheses</div>]]></description><link>https://community.troikatronix.com/post/14840</link><guid isPermaLink="true">https://community.troikatronix.com/post/14840</guid><dc:creator><![CDATA[casselli]]></dc:creator><pubDate>Wed, 04 Mar 2015 14:30:23 GMT</pubDate></item></channel></rss>