🤖Have you ever tried Chat.M5Stack.com before asking??😎
  • Tab5 Display Power Save

    Arduino arduino
    1
    0 Votes
    1 Posts
    632 Views
    No one has replied
  • I2c failure with MPU6050 component

    Arduino arduino
    2
    0 Votes
    2 Posts
    2k Views
    G
    More information If I use M5Unified.h and then a begin of M5.begin(), the data is all zeros. If I take out the begin, then the data is correct. There must be something in the M5Unified that is restarting the Wire or taking over the I2C bus. How can I correct this. It is a show stopper. If I can find a solution, then I will have to discard the M5Stack basic and go to a regular ESP32.
  • 0 Votes
    3 Posts
    2k Views
    P
    @felmue Thank-you - I had completely misunderstood :-) Simon
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • PCB LED stick

    Features Wish List led grove arduino
    5
    0 Votes
    5 Posts
    6k Views
    Matej's WorkshopM
    @JohnSal Or, you can just stick a wooden popsicle stick on it, so it won't be flexible! :-)
  • Serial trouble at startup with TimerCamX and Arduino

    Arduino arduino
    1
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    4 Posts
    4k Views
    LukeSL
    Thanks guys adding the build flags fixed the blank serial terminal in PlatformIO.
  • 0 Votes
    2 Posts
    3k Views
    P
    @lukes said in C++ syntax question - Defining an object in a class that requires arguments?: HardwareSerial Maybe this solves your problem ... class StaticClass { private: int myContent; public: StaticClass(int v){myContent = v;} void printout(){printf("%d\n",myContent);} }; class TestClass { public: //StaticClass myClass = StaticClass(42); // With C11 StaticClass myClass; TestClass() : myClass(42) { } void doit() { myClass.printout(); } }; int main(void) { TestClass tc; tc.doit(); }
  • M5 RS485 Modbus slave sample code does not compile

    Arduino arduino
    4
    0 Votes
    4 Posts
    4k Views
    R
    I'm having the same problem testing a similar example in https://github.com/m5stack/ATOM_DTU_LoRaWAN/blob/master/examples/Modbus/ModBus-RTU/Slave/Slave.ino Does anyone have a working example to share?
  • 0 Votes
    2 Posts
    3k Views
    felmueF
    Hello @LukeS I don't think the RGB LED has been integrated into M5Unified library for M5AtomLite. Even for M5AtomS3 the code for the RGB LED is kind of outside M5Unified library, e.g. in utility/LedDisplay.c. All I can find in M5Unified is the GPIO definition for the RGB LED for different M5Stack devices. However I don't think they are used. For M5AtomLite the RGB LED GPIO is (re-)defined and used from here. And for M5AtomS3 it is (re-)defined and used from here. Thanks Felix
  • 0 Votes
    3 Posts
    5k Views
    J
    @felmue Thank you so much Felix ! Have a good day (:
  • 0 Votes
    2 Posts
    4k Views
    ajb2k3A
    Have you got the correct port selected for the M5StickCPlus in arduino?
  • 0 Votes
    2 Posts
    4k Views
    P
    Hi @kasperhvid, any luck on that? I was hoping to do the same but all I get is an obscure "ERROR" response back from the getVersion() method.
  • Atom lite does not work with OTA

    Atom atom lite arduino ota
    4
    0 Votes
    4 Posts
    7k Views
    ajb2k3A
    @kees No, its to do with the fact that not all browsers are written the same. for best results always use google chrome as its the most upto date with web development standards.
  • Unable to load new FW from Arduino IDE.

    Arduino arduino c++ esp32
    4
    0 Votes
    4 Posts
    7k Views
    F
    @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
  • Core2 Default Partitioning in Arduino IDE 1.X

    Core 2 arduino core2
    2
    0 Votes
    2 Posts
    4k Views
    mongonta555M
    Hello, @wsanders The app0 and app1 partitions are used for firmware update with rollback in case of failure. It is also used by the OTA function. https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/ota.html
  • 0 Votes
    2 Posts
    7k Views
    W
    @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) << 2) | ((data[1] - 33) >> 4)); pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); pixel[2] = ((((data[2] - 33) & 0x3) << 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 <M5StickCPlus.h> #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 < height; y++) { for (int16_t x=0; x < 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.
  • [Solved] "#include <M5Core2.h>" doesn't compile

    Arduino arduino
    6
    0 Votes
    6 Posts
    11k Views
    rh1972R
    Well, it's working. The path to my Windows profile has a space in it. I created a local account without a space, and my empty program compiled with no issues. Don't know if that's the reason. Very strange. Makes me want to reinstall Ubuntu, or something. Thanks for the replies, Terry.
  • M5Paper: fast update to display keyboard entries

    Arduino esp32 arduino
    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • 0 Votes
    3 Posts
    7k Views
    E
    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