Navigation

    M5Stack Community

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

    Medy

    @Medy

    6
    Reputation
    33
    Posts
    1756
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Medy Follow

    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