<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>SH1106 &#8211; Squix &#8211; TechBlog</title>
	<atom:link href="https://blog.squix.org/tag/sh1106/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.squix.org</link>
	<description></description>
	<lastBuildDate>Thu, 09 Dec 2021 08:10:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.8</generator>
<site xmlns="com-wordpress:feed-additions:1">121913304</site>	<item>
		<title>ESP8266 Weather Station on the &#8220;Big Screen&#8221;</title>
		<link>https://blog.squix.org/2016/08/esp8266-weather-station-on-a-big-screen.html</link>
					<comments>https://blog.squix.org/2016/08/esp8266-weather-station-on-a-big-screen.html#comments</comments>
		
		<dc:creator><![CDATA[Daniel Eichhorn]]></dc:creator>
		<pubDate>Sat, 20 Aug 2016 06:46:57 +0000</pubDate>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[ESP8266]]></category>
		<category><![CDATA[OLED]]></category>
		<category><![CDATA[PlaneSpotter]]></category>
		<category><![CDATA[SH1106]]></category>
		<category><![CDATA[SSD1306]]></category>
		<category><![CDATA[WeatherStation]]></category>
		<guid isPermaLink="false">http://blog.squix.org/?p=764</guid>

					<description><![CDATA[The 0.96&#8243; OLED displays I usually use for the WeatherStation are gorgeous but they could be bigger, right? Recently a bigger version of the SSD1306 based display became available on my favourite channels. Thanks to great work of the community (especially Fabrice Weinberg) the OLED ... <p><a class="read-more btn btn-secondary" href="https://blog.squix.org/2016/08/esp8266-weather-station-on-a-big-screen.html">Read More</a></p>]]></description>
										<content:encoded><![CDATA[<p>The 0.96&#8243; OLED displays I usually use for the WeatherStation are gorgeous but they could be bigger, right? Recently a bigger version of the SSD1306 based display became available on my favourite channels. Thanks to great work of the community (especially Fabrice Weinberg) the <a href="https://github.com/squix78/esp8266-oled-ssd1306" target="_blank" rel="noopener">OLED library on Github</a>  as been extended to support those <a href="https://blog.squix.orghttps://www.banggood.com/1_3-Inch-4Pin-White-OLED-LCD-Display-12864-IIC-I2C-Interface-Module-p-1067874.html?p=6R31122484684201508S&#038;custlinkid=1587754" target="_blank" rel="noopener">1.3&#8243; displays based on the SH1106 chip</a>.</p>
<figure id="attachment_767" aria-describedby="caption-attachment-767" style="width: 225px" class="wp-caption aligncenter"><a href="https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/08/image-1.jpeg?ssl=1"><img data-recalc-dims="1" fetchpriority="high" decoding="async" data-attachment-id="767" data-permalink="https://blog.squix.org/2016/08/esp8266-weather-station-on-a-big-screen.html/image-78" data-orig-file="https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/08/image-1.jpeg?fit=3024%2C4032&amp;ssl=1" data-orig-size="3024,4032" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 6s&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1467551680&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;80&quot;,&quot;shutter_speed&quot;:&quot;0.03030303030303&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}" data-image-title="image" data-image-description="" data-image-caption="&lt;p&gt;0.96&#8243; based on SSD1306 and 1.3&#8243; based on SH1106 running the Plane Spotter&lt;/p&gt;
" data-medium-file="https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/08/image-1.jpeg?fit=225%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/08/image-1.jpeg?fit=730%2C973&amp;ssl=1" class="wp-image-767 size-medium" src="https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/08/image-1.jpeg?resize=225%2C300&#038;ssl=1" alt="0.96&quot; based on SSD1306 and 1.3&quot; based on SH1106 running the Plane Spotter" width="225" height="300" srcset="https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/08/image-1.jpeg?resize=225%2C300&amp;ssl=1 225w, https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/08/image-1.jpeg?resize=768%2C1024&amp;ssl=1 768w, https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/08/image-1.jpeg?resize=300%2C400&amp;ssl=1 300w, https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/08/image-1.jpeg?w=1460&amp;ssl=1 1460w, https://i0.wp.com/blog.squix.org/wp-content/uploads/2016/08/image-1.jpeg?w=2190&amp;ssl=1 2190w" sizes="(max-width: 225px) 100vw, 225px" /></a><figcaption id="caption-attachment-767" class="wp-caption-text">0.96&#8243; based on SSD1306 and 1.3&#8243; based on SH1106 running the Plane Spotter</figcaption></figure>
<p><span id="more-764"></span></p>
<h1>Adapting the code</h1>
<p>So how do you get those displays working with the <a href="https://blog.squix.org/weatherstation-ide-setup">WeatherStation</a> or the <a href="https://blog.squix.org/2016/07/esp8266-based-plane-spotter-how-to.html">PlaneSpotter</a>? The OLED library makes that really easy: you just have to change two lines of code. The include for the SH1106 driver has to be included and then the instantiation. Find the line</p>
<pre>#include &lt;SSD1306Wire.h&gt;</pre>
<p>and replace it with</p>
<pre>#include &lt;SH1106.h&gt;
</pre>
<p>The next step is to replace the instantiation of the driver:</p>
<pre>SSD1306Wire display(I2C_DISPLAY_ADDRESS, SDA_PIN, SDC_PIN);
</pre>
<p>and replace it with:</p>
<pre>SH1106  display(I2C_DISPLAY_ADDRESS, SDA_PIN, SDC_PIN);
</pre>
<p>Done! Easy, wasn&#8217;t it? The OLED library supports other types of displays or communication protocols. You kind out more about them here:<br />
<a href="https://github.com/squix78/esp8266-oled-ssd1306">https://github.com/squix78/esp8266-oled-ssd1306</a></p>
<h1>Summary</h1>
<p>With changing just a few lines you can get the WeatherStation and the PlaneSpotter working on the bigger 1.3&#8243; screens. The cost a little bit more but depending on your casing they are worth the money. By the way: the pixel density (DPI) is actually worse with the 1.3&#8243; displays since both types have the same resolution of 128&#215;64 pixels. You can find the displays on AliExpress, eBay or on Banggood and support the Blog by following this link.</p>
<h1>References</h1>
<ul>
<li><a href="https://github.com/squix78/esp8266-weather-station">https://github.com/squix78/esp8266-weather-station</a></li>
<li><a href="https://github.com/squix78/esp8266-oled-ssd1306" target="_blank" rel="noopener">https://github.com/squix78/esp8266-oled-ssd1306</a></li>
<li><a href="https://blog.squix.orghttps://www.banggood.com/1_3-Inch-4Pin-White-OLED-LCD-Display-12864-IIC-I2C-Interface-Module-p-1067874.html?p=6R31122484684201508S&#038;custlinkid=1587754" target="_blank" rel="noopener">1.3&#8243; OLED display on Banggood</a></li>
<li><a href="https://www.banggood.com/Geekcreit-0_96-Inch-4Pin-White-IIC-I2C-OLED-Display-Module-12864-LED-Geekcreit-for-Arduino-products-that-work-with-official-Arduino-boards-p-958196.html?p=0P21061109440201501M&amp;custlinkid=1587780" target="_blank" rel="noopener">0.96&#8243; OLED display on Banggood</a></li>
<li><a href="https://blog.squix.org/weatherstation-ide-setup" target="_blank" rel="noopener">WeatherStation Project Post</a></li>
<li><a href="https://blog.squix.org/2016/07/esp8266-based-plane-spotter-how-to.html" target="_blank" rel="noopener">PlaneSpotter Project Post</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.squix.org/2016/08/esp8266-weather-station-on-a-big-screen.html/feed</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">764</post-id>	</item>
	</channel>
</rss>
