Navigation

    M5Stack Community

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

    Posts made by Medy

    • RE: M5Paper SDCard access

      @felmue said in M5Paper SDCard access:

      isd = SPI(-1, miso=Pin(13), mosi=Pin(12), sck=Pin(14))
      sd = SDCard(spisd, Pin(4))
      os.mount(sd, '/sd')
      print(os.listdir('/sd'))

      Doesnt work for me ( it works for printing in thonny ... but the device freezes)

      posted in Micropython
      M
      Medy
    • RE: How to get Device infos from m5stack Devices

      @felmue I tried the core gray

      guess I will try again and report back if it works.

      Ideally the the new m5 stamps will works as well with coming updates ?

      posted in General
      M
      Medy
    • RE: M5Paper SDCard access

      @mrk I figured it out...

      turns out you dont need to mount at all just do

      import json
      
      with open('/sd/config.json', 'r') as fs:
      c = json.loads(fs.read())
      label0 = M5TextBox(140, 106, c['ssid'], lcd.FONT_Default, 0xFFFFFF, rotate=0)
      

      I may have run some code prior to that .. dont remember .. try that if the first thing didnt work .. ( this is from boot.py) ... maybe it gets added automatically

      import machine, os
      try:
          sd = machine.SDCard(slot=3, miso=19, mosi=23, sck=18, cs=4)
          sd.info()
          os.mount(sd, '/sd')
          print("SD card mounted at \"/sd\"")
      except:
          pass
      

      .

      import uos
      
      uos.sdconfig(uos.SDMODE_SPI,clk=18,mosi=23,miso=19,cs =4)
      
      uos.mountsd()
      posted in Micropython
      M
      Medy
    • RE: How to get Device infos from m5stack Devices

      @m5stack I tried the

      import deviceCfg
      deviceCfg.get_board_name() 
      

      it throws an error ....

      Traceback (most recent call last):
      
        File "<stdin>", line 1, in <module>
      
        File "deviceCfg.py", line 270, in get_board_name
      
      TypeError: string indices must be integers, not str
      

      I tested all the other functions of deviceCfg and they all work ...
      but the one I asked you to add does not....

      hanks for implementing it .. but it doesnt work ;)

      posted in General
      M
      Medy
    • RE: Preferred development flow

      @zontex nice .. finally smth I can debug with easily

      posted in Micropython
      M
      Medy
    • RE: Where is the WiFi config held?

      @titimoby thanks I figured out how to use mu now with your video

      posted in Micropython
      M
      Medy
    • RE: Where is the WiFi config held?

      @dclaar thanks man :D ... I forgot this existed ...
      also no im atm exploring options to improve debugging on m5stack ...
      if you have any advice please let me know ...

      Basicly I just want some way where I can run the code on devices with no screen .. and show me the errors .

      I tried mu .. but it doesnt seems to work on m5stack firmware ... same with ampy ... the "ls" command just freezes the prompt and doesnt show the directories -.-...

      the only serial connection I managed so far was via putty..

      Working on a little project to display notifcations on the m5 core devices...
      So maybe I will flash the micropython firmware instead of using uiflow ...
      I like uiflow though .... makes testing & developing stuff very nice

      posted in Micropython
      M
      Medy
    • How to do debugging (no screen) ?

      So far ive printed errors to the screen...
      But using the atom lite models lately ... I struggle with debugging.

      When I run custom code via UIFLOW ... how can I get acces to error messages ? prints etc ....

      posted in General
      M
      Medy
    • RE: Where is the WiFi config held?

      May I ask how you found out about the methods names ?

      I dont think they are up for reading on github right ?

      posted in Micropython
      M
      Medy
    • HOW TO ADD NEW FONTS TO (UIFLOW)?

      I want to transfer custom fonts to the m5core model...
      And then use them in UIflow.
      Any tutorial / tipps ?

      posted in General
      M
      Medy
    • RE: M5Paper text

      @murraypaul

      can I copy these generated fonts onto the m5stack flash and import them via micropython ?

      posted in Cores
      M
      Medy
    • M5 Core Model with bigger screen

      I would like to see big lcd screens version for the Core Model.

      Thats it.

      posted in Features Wish List
      M
      Medy
    • RE: [M5Paper] UiFlow support

      Well as long as it comes ... ideally 2021 ... im cool ... was just afraid there would be no support at all ... since I dont plan on learning C or using arduino ide ....

      Hopefully this is just the start of bigger screens.... I would love to have a bigger m5 lcd version as well

      posted in Features Wish List
      M
      Medy
    • M5Paper UIFLow / Micropython

      Got myself a m5paper ... so far there is no support for uiflow right ?
      Any advice on how to use this thingy with micropython. ty

      posted in General
      M
      Medy
    • RE: How to get Device infos from m5stack Devices

      @m5stack said in How to get Device infos from m5stack Devices:

      we didn't open-source all firmware code.

      this function would add it in the next version. we will release it this week or next week.

      the API would be like that

      import deviceCfg
      deviceCfg.get_board_name() 
      

      I installed the latest firmware so was it included ? What is the name of the funciton ?
      Can I rely on this working across all devices ? otherwise I may just need to let the user name devices themselves. ;)

      posted in General
      M
      Medy
    • RE: CoreInk - new arrival

      did order 1 .. in hopes it will be decent with deep sleeP :D

      posted in Cores
      M
      Medy
    • RE: How to get Device infos from m5stack Devices

      @felmue

      thanks for the heads up ... I would hope that they made some kind of effort in that regard ... for this particular model.... if anywhere .. I would expect it here..

      Quote :
      ", RTC(BM8563) for controlling accurate timing and deep sleep funcionality. "

      Sure its educational ... so it will be worth to me regardless...

      if not ... it will still be good to get me started for maybe my own project with a regular esp32 or smth...

      E-ink combined with low power is intersting to me .
      Already had my eye on a combination of waveshare e-ink displays combined with a esp32 setup....

      So this is a good start ;)

      posted in General
      M
      Medy
    • RE: How to get Device infos from m5stack Devices

      @ajb2k3 said in How to get Device infos from m5stack Devices:

      There is a way to get the information as M5Burner queries the information before attempting to erase the firmware.

      Look at esptool.py and see how it queries the port.

      I have no idea what you are talking about.

      I just wondered if deep sleep works out of the box on m5stack like described here :?
      deep sleep esp32

      or if there is anything else I need to look out for. I just want :
      1- make device sleep
      2-wake up after 24 hrs
      3 - run script
      4- repeat

      So I could put it somewhere on a single charge ... and it would maybe last a month or more

      Edit .. nvm I think you were still talking about the device info .. myy bad ..
      Already marked this as solved in my head ... as I will just wait for the update as @m5stack mentioned ... and use that for device info.

      posted in General
      M
      Medy