<?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[[SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display]]></title><description><![CDATA[<p dir="auto">Hi all, I'm looking for a working arduino code for ATOM LITE + OLED Unit 1.3" 128 × 64 Display to work with......</p>
<p dir="auto">best regards</p>
]]></description><link>https://community.m5stack.com/topic/3377/solved-atom-lite-oled-unit-1-3-128-64-display</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 22:32:15 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3377.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Jun 2021 11:36:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Sun, 11 Jul 2021 10:35:06 GMT]]></title><description><![CDATA[<p dir="auto">tnks a lot !!!!<br />
this sketch is working for me</p>
<pre><code>#include &lt;M5UnitOLED.h&gt;
M5UnitOLED display ( 26, 32, 400000 ); // SDA, SCL, FREQ
M5Canvas canvas(&amp;display);

static constexpr char text[] = "Hello world ! こんにちは世界！ this is long long string sample. 寿限無、寿限無、五劫の擦り切れ、海砂利水魚の、水行末・雲来末・風来末、喰う寝る処に住む処、藪ら柑子の藪柑子、パイポ・パイポ・パイポのシューリンガン、シューリンガンのグーリンダイ、グーリンダイのポンポコピーのポンポコナの、長久命の長助";
static constexpr size_t textlen = sizeof(text) / sizeof(text[0]);
int textpos = 0;
int scrollstep = 2;

void setup(void) 
{
  display.begin();

  if (display.width() &lt; display.height())
  {
    display.setRotation(display.getRotation() ^ 1);
  }


  canvas.setColorDepth(1); // mono color
  canvas.setFont(&amp;fonts::lgfxJapanMinchoP_32);
  canvas.setTextWrap(false);
  canvas.setTextSize(2);
  canvas.createSprite(display.width() + 64, 72);
}

void loop(void)
{
  int32_t cursor_x = canvas.getCursorX() - scrollstep;
  if (cursor_x &lt;= 0)
  {
    textpos = 0;
    cursor_x = display.width();
  }

  canvas.setCursor(cursor_x, 0);
  canvas.scroll(-scrollstep, 0);
  while (textpos &lt; textlen &amp;&amp; cursor_x &lt;= display.width())
  {
    canvas.print(text[textpos++]);
    cursor_x = canvas.getCursorX();
  }
  display.waitDisplay();
  canvas.pushSprite(&amp;display, 0, (display.height() - canvas.height()) &gt;&gt; 1);
}
</code></pre>
]]></description><link>https://community.m5stack.com/post/14379</link><guid isPermaLink="true">https://community.m5stack.com/post/14379</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Sun, 11 Jul 2021 10:35:06 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Fri, 09 Jul 2021 12:37:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/otosan-maker" aria-label="Profile: otosan-maker">@<bdi>otosan-maker</bdi></a> said in <a href="/post/14299">ATOM LITE + OLED Unit 1.3" 128 × 64 Display</a>:</p>
<blockquote>
<p dir="auto">I don´t like it ... please remove it and give a try in the loop with a static string ...<br />
And also, put any serial.println() debug code to see what code are you running</p>
</blockquote>
<pre><code>#include &lt;M5UnitOLED.h&gt;

//M5UnitOLED display; // default setting

M5UnitOLED display ( 21, 22, 400000 ); // SDA, SCL, FREQ

</code></pre>
]]></description><link>https://community.m5stack.com/post/14369</link><guid isPermaLink="true">https://community.m5stack.com/post/14369</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Fri, 09 Jul 2021 12:37:34 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Thu, 08 Jul 2021 23:50:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/otosan-maker" aria-label="Profile: otosan-maker">@<bdi>otosan-maker</bdi></a> said in <a href="/post/14299">ATOM LITE + OLED Unit 1.3" 128 × 64 Display</a>:</p>
<blockquote>
<p dir="auto">...and give a try in the loop with a static string ...</p>
</blockquote>
<p dir="auto">sorry but I don't understand ...</p>
<p dir="auto">I deleted :<br />
<code>static constexpr const char* text[] = { text0, text1, text2, text3, text4, text5, text6, text7 };  </code></p>
<p dir="auto">this is the compiling error message</p>
<pre><code>    Arduino:1.8.13 (Windows 10), Scheda:"M5Stick-C, Default, 1500000, None

    C:\Users\Documents\Arduino\OLEDDAJE\OLEDDAJE.ino: In function 'void loop()':
    
    
    OLEDDAJE:41:39: error: 'text' was not declared in this scope
    
    
       canvas.printf("%04d:%s\r\n", count, text[count &amp; 7]);
    
    
                                           ^
    
    
    Più di una libreria trovata per "SPI.h"
    
    
    Usata: C:\Users\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\1.0.7\libraries\SPI
    
    
    Non usata: C:\Users\Documents\Arduino\libraries\SPI
    
    
    exit status 1
    
    
    'text' was not declared in this scope

    Questo report potrebbe essere più ricco di informazioni abilitando l'opzione
    
    "Mostra un output dettagliato durante la compilazione"
    
    in "File -&gt; Impostazioni</code></pre>
]]></description><link>https://community.m5stack.com/post/14364</link><guid isPermaLink="true">https://community.m5stack.com/post/14364</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Thu, 08 Jul 2021 23:50:58 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Thu, 01 Jul 2021 14:32:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cepics" aria-label="Profile: cepics">@<bdi>cepics</bdi></a> said in <a href="/post/14211">ATOM LITE + OLED Unit 1.3" 128 × 64 Display</a>:</p>
<blockquote>
<p dir="auto">static constexpr const char* text[] = { text0, text1, text2, text3, text4, text5, text6, text7 };</p>
</blockquote>
<p dir="auto">I don´t like it ... please remove it and give a try in the loop with a static string ...</p>
<p dir="auto">And also, put any serial.println() debug code to see what code are you running</p>
]]></description><link>https://community.m5stack.com/post/14299</link><guid isPermaLink="true">https://community.m5stack.com/post/14299</guid><dc:creator><![CDATA[otosan-maker]]></dc:creator><pubDate>Thu, 01 Jul 2021 14:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Sat, 26 Jun 2021 04:34:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a> said in <a href="/post/14214">ATOM LITE + OLED Unit 1.3" 128 × 64 Display</a>:</p>
<blockquote>
<p dir="auto">you need to <code>#include &lt;M5UnitOLED.h&gt;</code></p>
<pre><code>#include &lt;M5UnitOLED.h&gt;

M5UnitOLED display;

M5Canvas canvas(&amp;display);

static constexpr char text[] = "Hello world ! こんにちは世界！ this is long long string sample. 寿限無、寿限無、五劫の擦り切れ、海砂利水魚の、水行末・雲来末・風来末、喰う寝る処に住む処、藪ら柑子の藪柑子、パイポ・パイポ・パイポのシューリンガン、シューリンガンのグーリンダイ、グーリンダイのポンポコピーのポンポコナの、長久命の長助";
static constexpr size_t textlen = sizeof(text) / sizeof(text[0]);
int textpos = 0;
int scrollstep = 2;

void setup(void) 
{
  display.init();
  display.setRotation(2);
  canvas.setColorDepth(1); // mono color
  canvas.setFont(&amp;fonts::lgfxJapanMinchoP_32);
  canvas.setTextWrap(false);
  canvas.setTextSize(2);
  canvas.createSprite(display.width() + 64, 72);
}

void loop(void)
{
  int32_t cursor_x = canvas.getCursorX() - scrollstep;
  if (cursor_x &lt;= 0)
  {
    textpos = 0;
    cursor_x = display.width();
  }

  canvas.setCursor(cursor_x, 0);
  canvas.scroll(-scrollstep, 0);
  while (textpos &lt; textlen &amp;&amp; cursor_x &lt;= display.width())
  {
    canvas.print(text[textpos++]);
    cursor_x = canvas.getCursorX();
  }
  display.waitDisplay();
  canvas.pushSprite(&amp;display, 0, (display.height() - canvas.height()) &gt;&gt; 1);
}

</code></pre>
</blockquote>
<p dir="auto">this sketch compile but doesn't display nothing</p>
<p dir="auto">no error message</p>
<p dir="auto">this is the atom lite boot on serial monitor after uploaded sketch</p>
<pre><code>rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac

</code></pre>
]]></description><link>https://community.m5stack.com/post/14228</link><guid isPermaLink="true">https://community.m5stack.com/post/14228</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Sat, 26 Jun 2021 04:34:05 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Fri, 25 Jun 2021 11:26:35 GMT]]></title><description><![CDATA[<p dir="auto">you need to <code>#include &lt;M5UnitOLED.h&gt;</code></p>
<pre><code>#include &lt;M5UnitOLED.h&gt;

M5UnitOLED display;

M5Canvas canvas(&amp;display);

static constexpr char text[] = "Hello world ! こんにちは世界！ this is long long string sample. 寿限無、寿限無、五劫の擦り切れ、海砂利水魚の、水行末・雲来末・風来末、喰う寝る処に住む処、藪ら柑子の藪柑子、パイポ・パイポ・パイポのシューリンガン、シューリンガンのグーリンダイ、グーリンダイのポンポコピーのポンポコナの、長久命の長助";
static constexpr size_t textlen = sizeof(text) / sizeof(text[0]);
int textpos = 0;
int scrollstep = 2;

void setup(void) 
{
  display.init();
  display.setRotation(2);
  canvas.setColorDepth(1); // mono color
  canvas.setFont(&amp;fonts::lgfxJapanMinchoP_32);
  canvas.setTextWrap(false);
  canvas.setTextSize(2);
  canvas.createSprite(display.width() + 64, 72);
}

void loop(void)
{
  int32_t cursor_x = canvas.getCursorX() - scrollstep;
  if (cursor_x &lt;= 0)
  {
    textpos = 0;
    cursor_x = display.width();
  }

  canvas.setCursor(cursor_x, 0);
  canvas.scroll(-scrollstep, 0);
  while (textpos &lt; textlen &amp;&amp; cursor_x &lt;= display.width())
  {
    canvas.print(text[textpos++]);
    cursor_x = canvas.getCursorX();
  }
  display.waitDisplay();
  canvas.pushSprite(&amp;display, 0, (display.height() - canvas.height()) &gt;&gt; 1);
}

</code></pre>
]]></description><link>https://community.m5stack.com/post/14214</link><guid isPermaLink="true">https://community.m5stack.com/post/14214</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Fri, 25 Jun 2021 11:26:35 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Fri, 25 Jun 2021 10:25:32 GMT]]></title><description><![CDATA[<p dir="auto">I think I have to change the i2c pin in the library..... but where??</p>
]]></description><link>https://community.m5stack.com/post/14213</link><guid isPermaLink="true">https://community.m5stack.com/post/14213</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Fri, 25 Jun 2021 10:25:32 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Fri, 25 Jun 2021 00:39:15 GMT]]></title><description><![CDATA[<ul>
<li>arduino envirement</li>
<li>atom lite</li>
<li>oled unit</li>
<li>up to date M5GFX</li>
</ul>
<p dir="auto">this is a test sketch:</p>
<pre><code>#include &lt;M5GFX.h&gt;

M5GFX display;
M5Canvas canvas(&amp;display);

static constexpr char text0[] = "hello world";
static constexpr char text1[] = "this";
static constexpr char text2[] = "is";
static constexpr char text3[] = "text";
static constexpr char text4[] = "log";
static constexpr char text5[] = "vertical";
static constexpr char text6[] = "scroll";
static constexpr char text7[] = "sample";
static constexpr const char* text[] = { text0, text1, text2, text3, text4, text5, text6, text7 };

void setup(void)
{
  display.begin();

  if (display.isEPD())
  {
    display.setEpdMode(epd_mode_t::epd_fastest);
    display.invertDisplay(true);
    display.clear(TFT_BLACK);
  }
  if (display.width() &lt; display.height())
  {
    display.setRotation(display.getRotation() ^ 1);
  }

  canvas.setColorDepth(1); // mono color
  canvas.createSprite(display.width(), display.height());
  canvas.setTextSize((float)canvas.width() / 160);
  canvas.setTextScroll(true);
}

void loop(void)
{
  static int count = 0;

  canvas.printf("%04d:%s\r\n", count, text[count &amp; 7]);
  canvas.pushSprite(0, 0);
  ++count;
}
</code></pre>
<p dir="auto">this is the arduino ide output:</p>
<pre><code>Lo sketch usa 301153 byte (22%) dello spazio disponibile per i programmi. Il massimo è 1310720 byte.
Le variabili globali usano 17052 byte (5%) di memoria dinamica, lasciando altri 310628 byte liberi per le variabili locali. Il massimo è 327680 byte.
esptool.py v3.0-dev
Serial port COM8
Connecting.....
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: d8:a0:1d:5c:95:0c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 1500000
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 4096.1 kbit/s)...
Hash of data verified.
Compressed 15856 bytes to 10276...
Writing at 0x00001000... (100 %)
Wrote 15856 bytes (10276 compressed) at 0x00001000 in 0.1 seconds (effective 991.0 kbit/s)...
Hash of data verified.
Compressed 301264 bytes to 153424...
Writing at 0x00010000... (10 %)
Writing at 0x00014000... (20 %)
Writing at 0x00018000... (30 %)
Writing at 0x0001c000... (40 %)
Writing at 0x00020000... (50 %)
Writing at 0x00024000... (60 %)
Writing at 0x00028000... (70 %)
Writing at 0x0002c000... (80 %)
Writing at 0x00030000... (90 %)
Writing at 0x00034000... (100 %)
Wrote 301264 bytes (153424 compressed) at 0x00010000 in 2.8 seconds (effective 870.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 1365.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Trovata libreria non valida in C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher-master: Nessun header file (.h) trovato in C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher-master
Trovata libreria non valida in C:\Users\Documents\Arduino\libraries\URM-master: Nessun header file (.h) trovato in C:\Users\Documents\Arduino\libraries\URM-master

</code></pre>
<p dir="auto">this is the serial monitor booting the atom lite</p>
<pre><code>ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
</code></pre>
]]></description><link>https://community.m5stack.com/post/14211</link><guid isPermaLink="true">https://community.m5stack.com/post/14211</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Fri, 25 Jun 2021 00:39:15 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Thu, 24 Jun 2021 18:45:14 GMT]]></title><description><![CDATA[<p dir="auto">I can upload the exemples sketches but nothing is on the display....</p>
]]></description><link>https://community.m5stack.com/post/14208</link><guid isPermaLink="true">https://community.m5stack.com/post/14208</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Thu, 24 Jun 2021 18:45:14 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Thu, 24 Jun 2021 17:13:59 GMT]]></title><description><![CDATA[<p dir="auto">why is it not working? Any error code? it is difficult to help you if you give no information.</p>
]]></description><link>https://community.m5stack.com/post/14207</link><guid isPermaLink="true">https://community.m5stack.com/post/14207</guid><dc:creator><![CDATA[otosan-maker]]></dc:creator><pubDate>Thu, 24 Jun 2021 17:13:59 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Thu, 24 Jun 2021 10:52:57 GMT]]></title><description><![CDATA[<p dir="auto">some tips???</p>
]]></description><link>https://community.m5stack.com/post/14205</link><guid isPermaLink="true">https://community.m5stack.com/post/14205</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Thu, 24 Jun 2021 10:52:57 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Mon, 21 Jun 2021 21:59:59 GMT]]></title><description><![CDATA[<p dir="auto">the library examples doesn't work for me</p>
<p dir="auto">I tryed with core gray, core2, atom lite without any result...</p>
<p dir="auto">may be I'm missing something......</p>
]]></description><link>https://community.m5stack.com/post/14170</link><guid isPermaLink="true">https://community.m5stack.com/post/14170</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Mon, 21 Jun 2021 21:59:59 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Mon, 21 Jun 2021 08:09:18 GMT]]></title><description><![CDATA[<p dir="auto">just use the M5GFX library.</p>
<p dir="auto"><a href="https://github.com/m5stack/M5GFX" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5GFX</a></p>
]]></description><link>https://community.m5stack.com/post/14160</link><guid isPermaLink="true">https://community.m5stack.com/post/14160</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Mon, 21 Jun 2021 08:09:18 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] ATOM LITE + OLED Unit 1.3&quot; 128 × 64 Display on Sun, 20 Jun 2021 20:57:34 GMT]]></title><description><![CDATA[<p dir="auto">nobody??</p>
]]></description><link>https://community.m5stack.com/post/14149</link><guid isPermaLink="true">https://community.m5stack.com/post/14149</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Sun, 20 Jun 2021 20:57:34 GMT</pubDate></item></channel></rss>