Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Powersoft
    3. Topics
    P
    • Continue chat with Powersoft
    • Start new chat with Powersoft
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by Powersoft

    • P

      Make a harcopy of the screen M5Core-2
      Core 2 • • Powersoft

      1
      0
      Votes
      1
      Posts
      1262
      Views

      No one has replied

    • P

      Problems with esptool.py Mac Big Sure
      Arduino • • Powersoft

      2
      0
      Votes
      2
      Posts
      3479
      Views

      That mean is , you have to reinstall the pyserial module https://pypi.org/project/pyserial/#files
    • P

      Load and write blocks of 512 direct to sd card M5Core2
      Units • m5core2 m5stack fire • • Powersoft

      1
      0
      Votes
      1
      Posts
      3362
      Views

      No one has replied

    • P

      Steppermotor module direct controll
      Modules • • Powersoft

      2
      0
      Votes
      2
      Posts
      3085
      Views

      No because the module uses the GRBL Gcode interpreter as the firmware.
    • P

      SPIFFS on M5StackCore2
      Core 2 • core2 spiffs • • Powersoft

      2
      0
      Votes
      2
      Posts
      3119
      Views

      E

      Yes you can, I am starting playing with my Core2 and could load a jpg image loaded in the SPIFFS using the SPIFFS.h Cheers Eric
    • P

      M5Paper and BME280 Sensor
      PROJECTS • • Powersoft

      2
      0
      Votes
      2
      Posts
      3129
      Views

      P

      Make an improvement in the main call routine. The return value of getBME280 is a boolean. now it is possible to check whether a BME280 is connected correctly. bool getBME280(TwoWire *theWire, double *t, double *p, double *h) { _i2c = theWire; /* check of BME280 is avilable */ uint8_t value = read8(0xD0); if (value == 0x60) // BME280 detected { reset_BME280(); // Reset BME280 write8(BME280_REGISTER_CONTROLHUMID,(uint8_t)0x01); // Select control humidity register write8(BME280_REGISTER_CONTROL, (uint8_t)0x27); // Select control measurement register write8(BME280_REGISTER_CONFIG, (uint8_t)0xA0); // Select config register readCoefficients(); // Read coefficients from BME280 *t = get_Temperature(); // Get temperature *p = get_Pressure()/100.0; // Get pressure *h = get_Humidity(); // Get Humidity return true; } else { return false; // No BME280 detected } } Cheers, Jan
    • P

      M5Paper I2C
      Modules • m5paper i2c-por • • Powersoft

      19
      0
      Votes
      19
      Posts
      16329
      Views

      @powersoft said in M5Paper I2C: Today I rewrote the routines for the BMP280 and BME280 for a single device. Simple include the source into the main program, and call it. This is now working as I wont. It takes a afternoon of work! Now put the finishing touches on the BMP280/BME280. Would it make sense to post them on the forum when they are ready? Cheers Jan Hi @Powersoft sorry for the absence, ive had some issues to deal with. nice work finding the issue. Create a project in the project forum and post your code and solution in there.
    • P

      My OpenWeatherMap display wth M%Paper
      PROJECTS • m5paper • • Powersoft

      6
      3
      Votes
      6
      Posts
      7894
      Views

      C

      @powersoft Hi, it is a very nice project! Maybe you can share your code with me?
    • P

      M5Paper partial Update Canvas
      Cores • core • • Powersoft

      7
      0
      Votes
      7
      Posts
      8022
      Views

      M

      As mentioned in the other thread, the missing step is transferring the canvas framebuffer to the EPD. If your loop function is changed as below, it works as you expect. void loop() { for (int i=1; i<7; i++) { canvas1.drawString(testString[i],20,20); /* m5epd_err_t UpdateArea(uint16_t x, uint16_t y, uint16_t w, uint16_t h, m5epd_update_mode_t mode); */ M5.EPD.WriteFullGram4bpp((uint8_t*)canvas1.frameBuffer()); M5.EPD.UpdateArea(0,0,100,100,UPDATE_MODE_GL16); delay(1000); } }
    • P

      UpdateArea
      Cores • • Powersoft

      1
      0
      Votes
      1
      Posts
      2099
      Views

      No one has replied

    • P

      Make a copy of the canvas
      Modules • copy canvas • • Powersoft

      2
      0
      Votes
      2
      Posts
      2402
      Views

      M

      You could loop over x and y, calling readPixel to get individual values, and save them. Or you could dump the raw buffer, which is available using frameBuffer, and is of size getBufferSize.
    • P

      The hight of character
      Units • m5paper • • Powersoft

      3
      0
      Votes
      3
      Posts
      4039
      Views

      M

      This is available in the TFT_eSPI base class to canvas, but is not exposed to us. The following seems to work: int height = ((TFT_eSPI&)Canvas).fontHeight();
    • P

      M5Paper, using canvas in procedure
      Modules • m5paper • • Powersoft

      2
      0
      Votes
      2
      Posts
      3237
      Views

      @powersoft Do you only have 1 canvas? Try canvas instead of canvas1. BTW, you can enclose your code in three back ticks (```) to make it easier for us to read, like this... this text has three back ticks before and after it
    • P

      [M5Paper] pushImage()
      Modules • m5paper • • Powersoft

      2
      0
      Votes
      2
      Posts
      3795
      Views

      @powersoft Have you tried this tool yet? https://github.com/m5stack/M5EPD/tree/main/tools/image2gray It takes a jpg/png/bmp image and converts the image to a 4bit grayscale array.
    • P

      M5Paper text
      Cores • • Powersoft

      23
      0
      Votes
      23
      Posts
      46353
      Views

      Hello, I Got the GFX font header file (by converting the Roboto.ttf file). Loaded the font file using canvas.setFreeFont(&Roboto_Medium50pt7b) and then display the text using canvas.printf(textString.c_str());. It is working fine and display the text properly but when I am giving some special characters äöü then they are not appearing on M5stack paper. Can someone please guide me what I am doing wrong? Am I missing something? Thanks The link to my question can be found here
    • P

      M5Paper load font message "FT_Stream_Open: opened `/GenSenRounded-R.ttf' but zero-sized"
      Cores • • Powersoft

      3
      0
      Votes
      3
      Posts
      4828
      Views

      P

      @lukasmaximus Thanks Lukas, The problem was loading the font from the internal file system. After delete all these, and place Serial.begin in the right orde loading of the fonts was no problem. Even my DSEG7Classic-Regular.ttf was loaded correct, and display correct. Converted it with the python file ttf2bin.py was also a succes in use. One question remains. The command "createRender(168, 256)" is used for drawing bigger text, but are there limitations? In my case when I put a larger value as 168 the screen still blanks, notting happens, but no error message shows up. The documentation is a bit fuzzy. Please can you explane this command.
    • P

      M5Paper load font from sdcard
      SOFTWARE • core • • Powersoft

      2
      0
      Votes
      2
      Posts
      3771
      Views

      Hi @Powersoft please don't double post, and refer to my reply on your other post
    • P

      M5Paper load font
      SOFTWARE • • Powersoft

      2
      0
      Votes
      2
      Posts
      3466
      Views

      please refer to my reply on your other post, has this been replicated 3 times now?
    • P

      M5Paper font
      SOFTWARE • • Powersoft

      11
      0
      Votes
      11
      Posts
      11996
      Views

      Hello, I Got the GFX font header file (by converting the Roboto.ttf file). Loaded the font file using canvas.setFreeFont(&Roboto_Medium50pt7b) and then display the text using canvas.printf(textString.c_str());. It is working fine and display the text properly but when I am giving some special characters äöü then they are not appearing on M5stack paper. Can someone please guide me what I am doing wrong? Am I missing something? Thanks The link to my question can be found here
    • P

      M5Paper blank display
      Cores • • Powersoft

      13
      0
      Votes
      13
      Posts
      12703
      Views

      @m5stack thnx, I solved this problem - indeed I had to load board definitions Also this YT-video 'M5Paper Seasons Greetings Display' was helpful: https://youtu.be/Tjz4fGRn8fo