<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Dromes4All : IR Communication</title><link>/challenges-projects/project14/attackofthedrones/b/blog/posts/dromes4all-ir-communication</link><description>I have been able to put together the essential parts of my Dromes4All mobile robot so now I have been working on establishing a communication system. I had previously decided to use infrared communication just because I have never used it before and </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Dromes4All : IR Communication</title><link>https://community.element14.com/challenges-projects/project14/attackofthedrones/b/blog/posts/dromes4all-ir-communication</link><pubDate>Wed, 19 May 2021 17:50:02 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f9c33704-d4cf-40a4-a167-52d5eb38b267</guid><dc:creator>beacon_dave</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;&lt;em&gt;&amp;quot;...I have looked into this and I still do not really understand the difference between these two functions...&amp;quot;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I think .write() is just sending the value as is, whereas .print() is converting the value first into its ASCII encoded representation before sending it as one or more values. e.g.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;.write(255) is sent as a single byte:&lt;/p&gt;&lt;p&gt;255&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp; 1111 1111&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;.print(255) is sent as three ASCII encoded bytes:&lt;/p&gt;&lt;p&gt;&amp;#39;2&amp;#39; &amp;#39;5&amp;#39; &amp;#39;5&amp;#39;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp;&amp;nbsp; 50 53 53&amp;nbsp;&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp;&amp;nbsp; 0011 0010&amp;nbsp;&amp;nbsp; 0011 0101&amp;nbsp;&amp;nbsp; 0011 0101&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;.print(255, HEX) is sent as two ASCII encoded bytes:&lt;/p&gt;&lt;p&gt;&amp;#39;F&amp;#39; &amp;#39;F&amp;#39;&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp;&amp;nbsp; 70 70&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp;&amp;nbsp; 0100 0110&amp;nbsp;&amp;nbsp; 0100 0110&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=11341&amp;AppID=289&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>