<?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[Icon on M5 paper]]></title><description><![CDATA[<p dir="auto">I tried nearly everything to get an temperature icon on my M5 paper display I always get something strange but not the icon.<br />
Not any converter did the job????<br />
I am blocked since a few weeks now.<br />
With Uniflow it is easy?<br />
Icon is 80 x 160<br />
arduino code<br />
const unsigned char epd_bitmap_paultestbmp [] PROGMEM = {</p>
<p dir="auto">};</p>
<p dir="auto">canvas.pushImage(50,250,80,160,epd_bitmap_paultestbmp  );</p>
]]></description><link>https://community.m5stack.com/topic/7269/icon-on-m5-paper</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 23:32:15 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7269.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Feb 2025 09:45:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Icon on M5 paper on Wed, 12 Feb 2025 19:04:27 GMT]]></title><description><![CDATA[<p dir="auto">I would suggest formatting the icon as a XBM and the using drawXBitmap, no need to decode the bits yourself:</p>
<p dir="auto">FOexample</p>
<pre><code>#include "somexbm.h"
...
M5.Display.drawXBitmap(0, 0, xbm_bits, xbm_width, xbm_height, TFT_BLACK);
</code></pre>
<p dir="auto">The .h file will have</p>
<pre><code>#define xbm_width 540
#define xbm_height 960
static unsigned char xbm_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, etc
</code></pre>
<p dir="auto">You can easily produce an XBM file with GIMP or some other program. I don't remember the format, but I thiink the file is just a bitwise stream of pixels values.</p>
]]></description><link>https://community.m5stack.com/post/28188</link><guid isPermaLink="true">https://community.m5stack.com/post/28188</guid><dc:creator><![CDATA[wsanders]]></dc:creator><pubDate>Wed, 12 Feb 2025 19:04:27 GMT</pubDate></item></channel></rss>