Navigation

    M5Stack Community

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

    • W

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

      2
      0
      Votes
      2
      Posts
      203
      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
      448
      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
      942
      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
      397
      Views

      No one has replied

    • E

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

      3
      0
      Votes
      3
      Posts
      1574
      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
      1579
      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
      1263
      Views

      No one has replied

    • W

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

      2
      0
      Votes
      2
      Posts
      1558
      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
      1422
      Views

      No one has replied

    • H

      Stamp Pico USB Serial
      Arduino • arduino esp32 • • HannesKannes

      8
      0
      Votes
      8
      Posts
      5695
      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
      1870
      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
      3027
      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
      2677
      Views

      No one has replied

    • W

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

      7
      0
      Votes
      7
      Posts
      6224
      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
      4560
      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
      2873
      Views

      No one has replied

    • N

      M5 Atom Lite built-in LED?
      Arduino • arduino • • Numian

      4
      0
      Votes
      4
      Posts
      5973
      Views

      N

      Got it! Thank you!
    • D

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

      3
      0
      Votes
      3
      Posts
      9567
      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
      3247
      Views

      No one has replied

    • T

      Sending Multiple data using LoRa module
      PRODUCTS • arduino arduino ide m5go lora • • thenecniv

      1
      0
      Votes
      1
      Posts
      3574
      Views

      No one has replied