<?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>10 CodeBug Projects in 10 Days: Teathering CodeBug with Python</title><link>/learn/learning-center/stem-academy/codebug/b/blog/posts/10-codebug-projects-in-10-days-teathering-codebug-with-python</link><description>Introducing CodeBug! What is CodeBug 10 CodeBug Projects in 10 Days Are You a STEM Educator? This project will actually be a little different than our previous projects. Rather than taking advantage of the Blockly interface an...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: 10 CodeBug Projects in 10 Days: Teathering CodeBug with Python</title><link>https://community.element14.com/learn/learning-center/stem-academy/codebug/b/blog/posts/10-codebug-projects-in-10-days-teathering-codebug-with-python</link><pubDate>Wed, 27 Jul 2016 13:06:03 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:cc0c184f-fc26-4484-999b-5a3ca3c17f29</guid><dc:creator>volly</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;So right up my alley.......I&amp;#39;m having way too much fun now.....&lt;/p&gt;&lt;p&gt;Pretty cool...&lt;/p&gt;&lt;p&gt;Thumbs Up &lt;span&gt;[mention:4213431ead3d478ca6912bc23688f94c:e9ed411860ed4f2ba0265705b8793d05]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=512&amp;AppID=127&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: 10 CodeBug Projects in 10 Days: Teathering CodeBug with Python</title><link>https://community.element14.com/learn/learning-center/stem-academy/codebug/b/blog/posts/10-codebug-projects-in-10-days-teathering-codebug-with-python</link><pubDate>Sun, 10 Apr 2016 21:51:51 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:cc0c184f-fc26-4484-999b-5a3ca3c17f29</guid><dc:creator>mamvcivm</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi there, Hope you can help. I&amp;#39;ve been trying to get the Codebug Tether to work on a PiZero. &lt;/p&gt;&lt;p&gt;I have the &lt;strong&gt;&lt;em&gt;serial&lt;/em&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;em&gt;codebug-tether&lt;/em&gt;&lt;/strong&gt; libraries installed - I can use commands such as codebug.set_row(3, 0b10100) but if I try codebug.set_pixel(2, 2, 1) I get this error:-&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Traceback (most recent call last):&lt;/p&gt;&lt;p&gt;&amp;nbsp; File &amp;quot;/home/pi/Documents/Python/Codebug/example.py&amp;quot;, line 3, in &amp;lt;module&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; codebug.set_pixel(2, 1, 1)&lt;/p&gt;&lt;p&gt;&amp;nbsp; File &amp;quot;/usr/lib/python3/dist-packages/codebug_tether/core.py&amp;quot;, line 299, in set_pixel&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.set_bit(channel, bit_index, state)&lt;/p&gt;&lt;p&gt;&amp;nbsp; File &amp;quot;/usr/lib/python3/dist-packages/codebug_tether/serial_channel_device.py&amp;quot;, line 151, in set_bit&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.or_mask(channel_index, bytes((1 &amp;lt;&amp;lt; bit_index,)))&lt;/p&gt;&lt;p&gt;&amp;nbsp; File &amp;quot;/usr/lib/python3/dist-packages/codebug_tether/serial_channel_device.py&amp;quot;, line 146, in or_mask&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bytes((mask,)))&lt;/p&gt;&lt;p&gt;TypeError: &amp;#39;bytes&amp;#39; object cannot be interpreted as an integer&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here&amp;#39;s the code I&amp;#39;m using:-&lt;/p&gt;&lt;p&gt;import codebug_tether&lt;/p&gt;&lt;p&gt;codebug = codebug_tether.CodeBug()&lt;/p&gt;&lt;p&gt;codebug.set_pixel(2, 1, 1)&lt;/p&gt;&lt;p&gt;codebug.set_row(3, 0b10100)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any suggestions?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Andrew&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=512&amp;AppID=127&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: 10 CodeBug Projects in 10 Days: Teathering CodeBug with Python</title><link>https://community.element14.com/learn/learning-center/stem-academy/codebug/b/blog/posts/10-codebug-projects-in-10-days-teathering-codebug-with-python</link><pubDate>Tue, 13 Oct 2015 04:41:53 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:cc0c184f-fc26-4484-999b-5a3ca3c17f29</guid><dc:creator>mcb1</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;Unfortunately the images seem to have been affected by the recent site issues&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I take it back F5 seemed to cure it ...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[mention:4213431ead3d478ca6912bc23688f94c:e9ed411860ed4f2ba0265705b8793d05]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=512&amp;AppID=127&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>