Navigation

    M5Stack Community

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

    Posts made by Powersoft

    • M5Paper text

      When I use the code

      canvas1.createRender(100);
      canvas1.setTextSize(100);
      
      uur=random(23);
      minuut=random(59);
      seconde=random(59);
      sprintf(charBuffer,"%02d:%02d:%02d",uur,minuut,seconde);
      int nWidth = canvas1.textWidth(charBuffer);
      

      nWidth is zero. How can I get the width of a string?
      When I test is wihth :
      nWidth = canvas1.textWidth("test");
      the answer is sill zero.
      Any sugestion?

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

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

      posted in Cores
      P
      Powersoft
    • RE: M5Paper font

      Thanks, do you get also the message as I mentiod before?

      posted in SOFTWARE
      P
      Powersoft
    • RE: M5Paper font

      @flypeek When I Run the example file, the load of the font file gives the message
      FT_Stream_Open: opened `/GenSenRounded-R.ttf' but zero-sized. But the file is'nt empty.
      Any idee?

      posted in SOFTWARE
      P
      Powersoft
    • RE: M5Paper font

      @kevindtimm Thanks, I agree!!

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

      When I load the font from the example M5EPD_TTF get the message

      "FT_Stream_Open: opened `/GenSenRounded-R.ttf' but zero-sized"

      What is the meaning of this message?

      posted in Cores
      P
      Powersoft
    • RE: M5Paper font

      Hello,

      Thanks again. Have a very simple question. Is running the example "M5EPD_TTF" on your M5Paper? I have stored the font on my sd card as in the example above but and get strange things on the window when running this example.

      Second thing what is the benefit using the fontedit program? I have used the tool ttf2bin.py and convert a a standard ttf font, put it un the sd card and tried it to use. No result.

      As the example shows, the M5Paper could use standard ttf files as on my computer. Is that right.

      For me the M5Paper is not usable at the moment. Too bad about all that money.
      I have a number of M5Stack items and I am very satisfied with them, but not bad about this one.

      posted in SOFTWARE
      P
      Powersoft
    • M5Paper load font from sdcard

      When I load the font file with canvas1.loadFont("/GenSenRounded-R.ttf", SD);
      the result is "zero". Is this meaning there is an error?
      File can be found in M5EPD_TTF example (arduino ide)

      posted in SOFTWARE
      P
      Powersoft
    • M5Paper load font

      When I load the font with "canvas.loadFont("/GenSenRounded-R.ttf", SD);"
      the result is zero. Is this meaning there is an error?
      The file GenSenRounded-R.ttf is in the example file M5EPD_TTF.

      posted in SOFTWARE
      P
      Powersoft
    • RE: M5Paper font

      Thanks for the response.
      do you have experience with the tool ttf2bin.py?
      It is in lib M5EPD/tools.

      posted in SOFTWARE
      P
      Powersoft
    • M5Paper font

      How can I convert a standard font to a file I can use with thw M5Paper.
      I need the 7 segment led font in my program

      posted in SOFTWARE
      P
      Powersoft
    • RE: M5Paper blank display

      @powersoft
      Found the solution. After setting into the preference the right url and loading the m5stack I was able to choose the M5Paper. Examples are running now👍

      posted in Cores
      P
      Powersoft
    • RE: M5Paper blank display

      @powersoft

      Is there progress on this topic?

      posted in Cores
      P
      Powersoft
    • RE: M5Paper blank display

      @zontex

      I appreciate that

      posted in Cores
      P
      Powersoft
    • RE: M5Paper blank display

      @zontex
      Have running all demo programs
      Here the results:

      Button: failed
      DISPLAY_URL_JPG: failed
      HELLOWORLD: pass
      M5EPD_TTF: failed
      RTC_BM8563: pass
      SHT30: pass
      TOUCH: failed

      This is very strange!

      posted in Cores
      P
      Powersoft
    • RE: M5Paper blank display

      @zontex
      That's working fine! Tried this several times with succes!
      When compiling the examples I use the board "M5Stack-Fire".

      When I try to run the example "M5EPD_TTF" then it is not workin, blank screen. Have you tried this example found in the example directory?
      The SHT30 example is working fine.

      All thing related to the canvas like fonts, drawing etc gives the problem.

      Do you have could run all example files?

      posted in Cores
      P
      Powersoft
    • RE: Several issues with your new M5Paper

      @powersoft

      Found the bin file, under the M5 Burnet

      posted in Cores
      P
      Powersoft
    • RE: M5Paper blank display

      @zontex yes,the upload is okee. I found also when I chanhe the font the output is not working. By the way all examples in the ide ore not working wich are manipulating the canvas.

      posted in Cores
      P
      Powersoft
    • RE: M5Paper error message

      @zamzam
      Do you have tried to slow down the upload speed. Had the same with other brands, after reducing the upload speed it works.
      Succes,
      Jan

      posted in Cores
      P
      Powersoft
    • M5Paper blank display

      Hello,
      When I load an example from the Arduino IDE "HelloWorld" the screen is staying blank. Some other also.
      Is there a solution of this problem?

      Thanks for any help.

      Jan

      posted in Cores
      P
      Powersoft