Navigation

    M5Stack Community

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

    • S

      "A fatal error occurred: Timed out waiting for packet header"
      Arduino • arduino esp32 c++ • • salami

      2
      0
      Votes
      2
      Posts
      119
      Views

      Have you got the correct port selected for the M5StickCPlus in arduino?
    • K

      UHF RFID unit problems interfacing with arduino mega using code example from github
      Units • arduino rfid uhf • • kasperhvid

      2
      0
      Votes
      2
      Posts
      313
      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.
    • K

      Atom lite does not work with OTA
      Atom • arduino atom lite ota • • Kees

      4
      0
      Votes
      4
      Posts
      717
      Views

      @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.
    • F

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

      4
      0
      Votes
      4
      Posts
      714
      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

      Core2 Default Partitioning in Arduino IDE 1.X
      Core 2 • arduino core2 • • wsanders

      2
      0
      Votes
      2
      Posts
      558
      Views

      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
    • W

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

      2
      0
      Votes
      2
      Posts
      997
      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 • • rh1972

      6
      0
      Votes
      6
      Posts
      1737
      Views

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

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

      1
      0
      Votes
      1
      Posts
      691
      Views

      No one has replied

    • E

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

      3
      0
      Votes
      3
      Posts
      1928
      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
      1890
      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
      1458
      Views

      No one has replied

    • W

      Arduino IDE overwrites UIFlow Boot Loader?
      Arduino • arduino • • wsanders

      2
      0
      Votes
      2
      Posts
      1779
      Views

      Unfortunately not. Arduino work on a lower level than MicroPython and so runs directly on the hardware. Micropython is an interpreted language and so need to install a boot loader/ interpreter to run. It can be inconvenient to have to install the MP boot loader when you want to switch back but its now a simple process.
    • A

      VoltMeter ADS1115
      Modules • arduino leonardo • • All_Hope

      1
      0
      Votes
      1
      Posts
      1591
      Views

      No one has replied

    • H

      Stamp Pico USB Serial
      Arduino • arduino esp32 • • HannesKannes

      8
      0
      Votes
      8
      Posts
      6240
      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
    • J

      UWB unit and Arduino UART interface capabilities
      Units • arduino uwb dwm1000 uart api • • jok4

      1
      0
      Votes
      1
      Posts
      2047
      Views

      No one has replied

    • T

      UHF RFID Unit (JRD-4035) on Arduino Uno
      Units • arduino rfid project • • tobias.h

      3
      0
      Votes
      3
      Posts
      3379
      Views

      @tobias-h said in UHF RFID Unit (JRD-4035) on Arduino Uno: E.g. what board to select in the board manager ? In the Arduino IDE select: Tools - Board - Arduino AVR Boards - Arduino Uno. May I suggest you first get more familiar with the Arduino IDE, your Arduino Uno board and some simpler sketch examples for the Arduino Uno? Then maybe do some experiments with the serial connection (which is needed to talk to the UHF RFID Unit)? Alternatively you can always get an M5Stack device for which the example has been written. Thanks Felix
    • S

      Extended Core2 LCD brightness - function demo.
      Arduino • arduino • • SarahC

      1
      1
      Votes
      1
      Posts
      2969
      Views

      No one has replied

    • W

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

      7
      0
      Votes
      7
      Posts
      6680
      Views

      W

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

      M5StickC - M5.LCD draws only a part of the display
      Arduino • arduino • • lunard

      4
      0
      Votes
      4
      Posts
      4976
      Views

      L

      There is aM5StickPlus library !! Thanks a lot!
    • M

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

      1
      0
      Votes
      1
      Posts
      3109
      Views

      No one has replied