<?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[Topics tagged with c++]]></title><description><![CDATA[A list of topics that have been tagged with c++]]></description><link>https://community.m5stack.com/tags/c++</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 22:32:30 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/tags/c++.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 May 2023 11:05:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[&quot;A fatal error occurred: Timed out waiting for packet header&quot;]]></title><description><![CDATA[Have you got the correct port selected for the M5StickCPlus in arduino?
]]></description><link>https://community.m5stack.com/topic/5324/a-fatal-error-occurred-timed-out-waiting-for-packet-header</link><guid isPermaLink="true">https://community.m5stack.com/topic/5324/a-fatal-error-occurred-timed-out-waiting-for-packet-header</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 22 May 2023 11:05:07 GMT</pubDate></item><item><title><![CDATA[Unable to load new FW from Arduino IDE.]]></title><description><![CDATA[@teastain This is en backtrace decoded:
PC: 0x04d25826
EXCVADDR: 0x04d25824
Decoding stack results
0x40090d71: prvIdleTask at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c line 3382
0x4008f5b6: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143
]]></description><link>https://community.m5stack.com/topic/5160/unable-to-load-new-fw-from-arduino-ide</link><guid isPermaLink="true">https://community.m5stack.com/topic/5160/unable-to-load-new-fw-from-arduino-ide</guid><dc:creator><![CDATA[fbritop]]></dc:creator><pubDate>Tue, 28 Mar 2023 02:07:35 GMT</pubDate></item><item><title><![CDATA[M5Stack.h: No such file or directory with M5StickCPlus?]]></title><description><![CDATA[@wsanders At least with respect to the LCD library: The only function implemented so far to manipulate whole images is drawBitmap. drawJpg and drawJpgFile are commented out in https://github.com/m5stack/M5StickC-Plus/blob/master/src/M5Display.h so I assume they aren't working yet.
So my workflow for now is:

Save the image from gimp  in gimp's ".h" format. This is smaller than a xpm or bmp. You will get a static char *data structure of all the pixels in the image. The .h file includes a macro to extract the pixels:

#define HEADER_PIXEL(data,pixel) {
pixel[0] = (((data[0] - 33) &lt;&lt; 2) | ((data[1] - 33) &gt;&gt; 4)); 
pixel[1] = ((((data[1] - 33) &amp; 0xF) &lt;&lt; 4) | ((data[2] - 33) &gt;&gt; 2)); 
pixel[2] = ((((data[2] - 33) &amp; 0x3) &lt;&lt; 6) | ((data[3] - 33))); 
data += 4; 
}


Write your own function rgb888to565 to compress the pixels into a uint16_t.


Draw a bitmap of the image as fast as you can:


#include &lt;M5StickCPlus.h&gt;
#include "1.h"
int pixel[3];
// pointer fu to preserve the start of .h data
char *datastart;
uint16_t *bitmap;
void setup() {
M5.begin();
M5.Lcd.setRotation(3);
bitmap = (uint16_t *)malloc(height * width * 2);
}
void loop() {
M5.Lcd.fillScreen(GREEN);
datastart = data;
for (int16_t y=0; y &lt; height; y++) {
for (int16_t x=0; x &lt; width; x++) {
HEADER_PIXEL(data, pixel);
bitmap[60*y + x] = rgb888to565(pixel[0], pixel[1], pixel[2]);
}
}
M5.Lcd.drawBitmap(0,0,width,height,bitmap);
data = datastart;
}
Or you can use the Sprite library, which works well.
]]></description><link>https://community.m5stack.com/topic/5045/m5stack-h-no-such-file-or-directory-with-m5stickcplus</link><guid isPermaLink="true">https://community.m5stack.com/topic/5045/m5stack-h-no-such-file-or-directory-with-m5stickcplus</guid><dc:creator><![CDATA[wsanders]]></dc:creator><pubDate>Wed, 08 Feb 2023 20:22:00 GMT</pubDate></item><item><title><![CDATA[Stange interaction between clock and temprature sensor setup]]></title><description><![CDATA[Hi @felmue and thanks for the help. I changed GPIO and it works now. Strange as input port 2 worked when the temperature sensor were implemented separably.
However I have spend enough time trying to make it work. So I will not conplain now that it is working.
Thanks again
]]></description><link>https://community.m5stack.com/topic/4574/stange-interaction-between-clock-and-temprature-sensor-setup</link><guid isPermaLink="true">https://community.m5stack.com/topic/4574/stange-interaction-between-clock-and-temprature-sensor-setup</guid><dc:creator><![CDATA[EricR]]></dc:creator><pubDate>Thu, 01 Sep 2022 12:04:21 GMT</pubDate></item><item><title><![CDATA[M5Stack LoRa and ThingSpeak]]></title><description><![CDATA[So, I have 2 m5stack core with me.
My idea is to have these 2(or potentially more) to communicate with each other via LoRa, one to be a sensor node, and another acts as a receiver.
The receiving node will then upload the data received from the sensing node to thingspeak.
The components used in this system is the ENV sensor, and the LoRa modules.
I hope this explains what I am trying to do.
]]></description><link>https://community.m5stack.com/topic/1584/m5stack-lora-and-thingspeak</link><guid isPermaLink="true">https://community.m5stack.com/topic/1584/m5stack-lora-and-thingspeak</guid><dc:creator><![CDATA[thenecniv]]></dc:creator><pubDate>Tue, 07 Jan 2020 07:29:59 GMT</pubDate></item><item><title><![CDATA[M5Stack LCD Auto Clear]]></title><description><![CDATA[most M5Stack Arduino API , you can find it from this page.
link:https://docs.m5stack.com/#/en/arduino/arduino_api
]]></description><link>https://community.m5stack.com/topic/1579/m5stack-lcd-auto-clear</link><guid isPermaLink="true">https://community.m5stack.com/topic/1579/m5stack-lcd-auto-clear</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Mon, 06 Jan 2020 05:45:34 GMT</pubDate></item><item><title><![CDATA[MQTT Library for Arduino]]></title><link>https://community.m5stack.com/topic/1569/mqtt-library-for-arduino</link><guid isPermaLink="true">https://community.m5stack.com/topic/1569/mqtt-library-for-arduino</guid><pubDate>Thu, 02 Jan 2020 05:45:35 GMT</pubDate></item></channel></rss>