<?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[Python Module for I2C, OLED Library Update]]></title><description><![CDATA[<h4>I2C Python Module</h4>
<p dir="auto">Finally, as promised, the Onion I2C library is available as a Python module.</p>
<p dir="auto">Check out this wiki post for details on how to install and use the module: <a href="https://wiki.onion.io/Tutorials/Libraries/I2C-Library" rel="nofollow">https://wiki.onion.io/Tutorials/Libraries/I2C-Library</a></p>
<h4>OLED Expansion Library</h4>
<p dir="auto">The OLED library has been updated with some new functions:</p>
<ul>
<li>Setting column addressing for text</li>
<li>Setting column addressing for the full screen</li>
<li>Setting the cursor based on the row and pixel (instead of column)</li>
<li>Writing a single byte (8 vertical pixels) to the screen</li>
</ul>
<p dir="auto">The functions are available in the C library as well as the Python Module, and the command line <code>oled-exp</code> tool supports the new functions as well.<br />
All of the info can be found here: <a href="https://wiki.onion.io/Tutorials/Libraries/OLED-Expansion-Library" rel="nofollow">https://wiki.onion.io/Tutorials/Libraries/OLED-Expansion-Library</a></p>
]]></description><link>http://community.onion.io/topic/560/python-module-for-i2c-oled-library-update</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 07:52:12 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/560.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Feb 2016 01:00:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Python Module for I2C, OLED Library Update on Wed, 24 Feb 2016 01:01:14 GMT]]></title><description><![CDATA[<h4>I2C Python Module</h4>
<p dir="auto">Finally, as promised, the Onion I2C library is available as a Python module.</p>
<p dir="auto">Check out this wiki post for details on how to install and use the module: <a href="https://wiki.onion.io/Tutorials/Libraries/I2C-Library" rel="nofollow">https://wiki.onion.io/Tutorials/Libraries/I2C-Library</a></p>
<h4>OLED Expansion Library</h4>
<p dir="auto">The OLED library has been updated with some new functions:</p>
<ul>
<li>Setting column addressing for text</li>
<li>Setting column addressing for the full screen</li>
<li>Setting the cursor based on the row and pixel (instead of column)</li>
<li>Writing a single byte (8 vertical pixels) to the screen</li>
</ul>
<p dir="auto">The functions are available in the C library as well as the Python Module, and the command line <code>oled-exp</code> tool supports the new functions as well.<br />
All of the info can be found here: <a href="https://wiki.onion.io/Tutorials/Libraries/OLED-Expansion-Library" rel="nofollow">https://wiki.onion.io/Tutorials/Libraries/OLED-Expansion-Library</a></p>
]]></description><link>http://community.onion.io/post/4195</link><guid isPermaLink="true">http://community.onion.io/post/4195</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Wed, 24 Feb 2016 01:01:14 GMT</pubDate></item><item><title><![CDATA[Reply to Python Module for I2C, OLED Library Update on Wed, 24 Feb 2016 03:17:29 GMT]]></title><description><![CDATA[<p dir="auto">I am go glad you updated the oled python library. HOWEVER:</p>
<ol>
<li>there are typos in the wiki: the python method is not oledSetImageColumns() , it is just setImageColumns()</li>
</ol>
<p dir="auto">(one can check by doing a dir on the module)</p>
<ol>
<li>more importantly, when I call setCursorByPixel(0,0) I get a seg fault.</li>
</ol>
<p dir="auto">Please fix these bugs ! I am writing a library to write scalable font to the display and need byte level writes to work.</p>
<p dir="auto">Thanks,<br />
P.K.</p>
]]></description><link>http://community.onion.io/post/4200</link><guid isPermaLink="true">http://community.onion.io/post/4200</guid><dc:creator><![CDATA[PK Shiu]]></dc:creator><pubDate>Wed, 24 Feb 2016 03:17:29 GMT</pubDate></item><item><title><![CDATA[Reply to Python Module for I2C, OLED Library Update on Thu, 25 Feb 2016 04:33:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/153">@PK-Shiu</a> Ah apologies for the typos, the wiki article has been updated.</p>
<p dir="auto">And I'll take a loot at the segfault tomorrow!</p>
]]></description><link>http://community.onion.io/post/4223</link><guid isPermaLink="true">http://community.onion.io/post/4223</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Thu, 25 Feb 2016 04:33:18 GMT</pubDate></item><item><title><![CDATA[Reply to Python Module for I2C, OLED Library Update on Thu, 25 Feb 2016 20:54:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/153">@PK-Shiu</a><br />
It works fine on my end, I think that the segfault issue is due to the <code>libonionoledexp</code> library not being the latest version.</p>
<p dir="auto">Can you run <code>opkg list-installed | grep -i oled</code>?<br />
All of the versions should be <code>0.2-1</code></p>
<p dir="auto">If that's the case, run the following:</p>
<pre><code>opkg upgrade pyOledExp --force-depends
</code></pre>
<p dir="auto">This will update the pyOledExp package and all of it's dependencies to the latest version. Try running your code again and let me know how it goes.</p>
]]></description><link>http://community.onion.io/post/4241</link><guid isPermaLink="true">http://community.onion.io/post/4241</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Thu, 25 Feb 2016 20:54:44 GMT</pubDate></item><item><title><![CDATA[Reply to Python Module for I2C, OLED Library Update on Thu, 25 Feb 2016 22:23:30 GMT]]></title><description><![CDATA[<p dir="auto">Not only did I have to force my Onion to update the Python OLED library, I also had to force it to update the C library:</p>
<pre><code>opkg upgrade libonionoledexp --force-depends</code></pre>
]]></description><link>http://community.onion.io/post/4249</link><guid isPermaLink="true">http://community.onion.io/post/4249</guid><dc:creator><![CDATA[Bryan Hilterbrand]]></dc:creator><pubDate>Thu, 25 Feb 2016 22:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to Python Module for I2C, OLED Library Update on Thu, 25 Feb 2016 23:28:22 GMT]]></title><description><![CDATA[<p dir="auto">Thank you, <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/95">@Lazar-Demin</a>, it appears to be working great!</p>
<p dir="auto">Here's my test program for those who are interested.</p>
<pre><code>#!/usr/bin/python

import OmegaExpansion.oledExp as oled

oled.driverInit()
oled.setDisplayPower(1)
oled.setDisplayMode(0)
oled.setImageColumns()
oled.clear()

oled.setCursorByPixel(0, 0)

oled.writeByte(0x3C)
oled.writeByte(0x42)
oled.writeByte(0x89)
oled.writeByte(0xA1)
oled.writeByte(0xA1)
oled.writeByte(0x89)
oled.writeByte(0x42)
oled.writeByte(0x3C)
</code></pre>
<p dir="auto">I'm ignoring the status return from writeByte (and probably a few other API's too). The output should be a tiny face on the OLED. I tried to do a smiley, but there wasn't enough space in an 8x8 block</p>
<p dir="auto">Bryan.</p>
]]></description><link>http://community.onion.io/post/4259</link><guid isPermaLink="true">http://community.onion.io/post/4259</guid><dc:creator><![CDATA[Bryan Hilterbrand]]></dc:creator><pubDate>Thu, 25 Feb 2016 23:28:22 GMT</pubDate></item><item><title><![CDATA[Reply to Python Module for I2C, OLED Library Update on Thu, 25 Feb 2016 23:41:09 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/354">@Bryan-Hilterbrand</a> and <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/95">@Lazar-Demin</a> - I have to update both libraries. Now it is working. BTW this is my package list:</p>
<p dir="auto">libonionoledexp - 0.2-1<br />
oled-exp - 0.1-1<br />
pyOledExp - 0.2-1</p>
<p dir="auto">oled-exp is still at 0.1.-1.</p>
<p dir="auto">P.K.</p>
]]></description><link>http://community.onion.io/post/4260</link><guid isPermaLink="true">http://community.onion.io/post/4260</guid><dc:creator><![CDATA[PK Shiu]]></dc:creator><pubDate>Thu, 25 Feb 2016 23:41:09 GMT</pubDate></item><item><title><![CDATA[Reply to Python Module for I2C, OLED Library Update on Fri, 26 Feb 2016 00:22:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/153">@PK-Shiu</a>, you're right, oled-exp should be updated as well. oled-exp is the command line tool for accessing the OLED screen, so it doesn't matter when you're using Python.</p>
<pre><code>opkg upgrade oled-exp --force-depends</code></pre>
]]></description><link>http://community.onion.io/post/4261</link><guid isPermaLink="true">http://community.onion.io/post/4261</guid><dc:creator><![CDATA[Bryan Hilterbrand]]></dc:creator><pubDate>Fri, 26 Feb 2016 00:22:04 GMT</pubDate></item><item><title><![CDATA[Reply to Python Module for I2C, OLED Library Update on Fri, 26 Feb 2016 15:58:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/354">@Bryan-Hilterbrand</a><br />
Nice! Here's your test program on my Omega at the office:<br />
<img src="http://i.imgur.com/X0QqB6u.jpg" alt="oled smiley" class="img-responsive img-markdown" /></p>
]]></description><link>http://community.onion.io/post/4272</link><guid isPermaLink="true">http://community.onion.io/post/4272</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Fri, 26 Feb 2016 15:58:48 GMT</pubDate></item></channel></rss>