Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Tags
    3. esp32

    • F

      Unable to load new FW from Arduino IDE.
      Arduino • arduino esp32 c++ • • fbritop

      4
      0
      Votes
      4
      Posts
      178
      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
    • W

      M5Stack.h: No such file or directory with M5StickCPlus?
      Arduino • arduino esp32 c++ • • wsanders

      2
      0
      Votes
      2
      Posts
      513
      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.
    • D

      M5Paper: fast update to display keyboard entries
      Arduino • arduino esp32 • • DiWa

      1
      0
      Votes
      1
      Posts
      427
      Views

      No one has replied

    • E

      Unit cam DIY kit and Esphome
      Modules • esp32 esphome cam home assistant • • ewim.ew

      1
      0
      Votes
      1
      Posts
      684
      Views

      No one has replied

    • E

      Stange interaction between clock and temprature sensor setup
      Arduino • arduino esp32 c++ • • EricR

      3
      0
      Votes
      3
      Posts
      1600
      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
    • C

      AtomMotion + PS4 Gamepad
      Arduino • arduino esp32 • • Cakedrinker

      3
      0
      Votes
      3
      Posts
      1605
      Views

      C

      My board was defect, I changed the MotionBase , now it is working perfectly.
    • R

      Do you know Bluetooth Sample Code. a2dp+spp
      Arduino • arduino esp32 • • riraosan

      1
      0
      Votes
      1
      Posts
      1277
      Views

      No one has replied

    • H

      Stamp Pico USB Serial
      Arduino • arduino esp32 • • HannesKannes

      8
      0
      Votes
      8
      Posts
      5726
      Views

      H

      @felmue said in Stamp Pico USB Serial: Or in other words, there is no way to directly connect D- and D+ from the USB-C breakout to the M5PicoStamp. Hi Felix, thanks alot for that information. Was hoping this converter could be easy be done by some ICs and restistors maybe but would be too difficult for me yet. So i think i will get another controller with built in or a cojntroller with onboard USBC connection. Makes no sense to spend much time and money if the device will be procudes 100 times each with MCU and a serial converter. Your help was great!!! Best regards Hannes
    • W

      Loss of the program on Arduino
      Arduino • arduino esp32 • • What_is

      7
      0
      Votes
      7
      Posts
      6266
      Views

      W

      @m5stack How can I get bin file from the device?
    • M

      How to play and store audio file from Google translate url?
      Atom • esp32 tts google audio • • makadodo

      1
      0
      Votes
      1
      Posts
      2889
      Views

      No one has replied

    • M

      SPIFFS.begin() throws exception
      Atom • esp32 • • makadodo

      1
      0
      Votes
      1
      Posts
      2609
      Views

      No one has replied

    • M

      M5Camera Model B Webserver with ENVII Sensor
      Arduino • arduino esp32 • • mamtho

      1
      0
      Votes
      1
      Posts
      2890
      Views

      No one has replied

    • D

      'Serial2' was not declared - Error compiling with Arduino IDE
      Arduino • arduino esp32 • • Degenknauf

      3
      0
      Votes
      3
      Posts
      9619
      Views

      Hi Just add HardwareSerial Serial2(2); under #include <Arduino.h> in /Users/matthias/Documents/Arduino/libraries/M5Stack/src/LoRaWan.h
    • G

      setLowPowerShutdownTime() usage
      Arduino • arduino esp32 • • GregFordyce

      1
      0
      Votes
      1
      Posts
      3263
      Views

      No one has replied

    • T

      M5Stack LoRa and ThingSpeak
      Arduino • arduino esp32 c++ • • thenecniv

      3
      0
      Votes
      3
      Posts
      5037
      Views

      T

      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.
    • T

      M5Stack LCD Auto Clear
      Arduino • arduino esp32 c++ • • thenecniv

      2
      0
      Votes
      2
      Posts
      4239
      Views

      most M5Stack Arduino API , you can find it from this page. link:https://docs.m5stack.com/#/en/arduino/arduino_api
    • T

      MQTT Library for Arduino
      Arduino • arduino esp32 c++ • • thenecniv

      1
      3
      Votes
      1
      Posts
      4502
      Views

      No one has replied