🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    m5ez for micropython 1/?

    Scheduled Pinned Locked Moved SOFTWARE
    3 Posts 2 Posters 8.4k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      felix42eu
      last edited by

      Step 1: Build Micropython on Windows 10 DONE

      • GIVEN Ubuntu Linux Subsystem

      • AND dependent packages / python /pip (see wiki by loboris)

      • AND M5fire serial port connected on COM1 (/dev/ttyS1)

      • AND user has access to serial port

      • AND git repositories from loboris (optional) and M5Stack

      • WHEN ./BUILD.sh menuconfig

      • AND ./BUILD.sh -j4

      • AND ./BUILD.sh --port /dev/ttyS1 flash

      • AND reset M5fire

      • AND ./BUILD.sh --port /dev/ttyS1 monitor

      • THEN bootup messages (TODO)

      • AND python REPL active

      • AND M5stack module (via help(modules)

      OPEN:

      • startup errors (boot.py/main.py?)
      • no ui with menu config

      Step 2: Add a simple C/INO module with python access OPEN

      ![questions](Bild Link) and comments welcome

      1 Reply Last reply Reply Quote 0
      • F Offline
        felix42eu
        last edited by

        update

        I am still working on the module integration - got one answers to my help issue on github repo from loboris

        • https://github.com/vrubel/MicroPython_ESP32_psRAM_LoBo/commit/57227919ffa93f426fb21212a5d949ea92f2d9f5

        • Add a define NEW_MODULE to menuconfig (MicroPython_BUILD/components/micropython/Kconfig.projbuild)

        • Add a ifdef guard with your DEFINE NEW_MODULE to the micropython makefile ( MicroPython_BUILD/components/micropython/component.mk)

        • write your sourcecode (MicroPython_BUILD/components/micropython/esp32/new_module.c)

        Kconfig.projbuild

           config MICROPY_USE_NEW_MODULE 
                    bool "Use NEW_MODULE "
                    default y
                    help
                        Include source from new_model.c into build 
        
        

        component.mk

        ifdef MICROPY_USE_NEW_MODULE 
        SRC_C += esp32/new_module.c
        endif
        

        mpconfigport.h

        #ifdef MICROPY_USE_NEW_MODULE 
        extern const struct _mp_obj_module_t mp_module_new_module;
        #define BUILTIN_MODULE_NEW_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_indicator), (mp_obj_t)&mp_module_new_module},
        #else
        #define BUILTIN_MODULE_NEW_MODULE
        #endif
        ...
        
        #define MICROPY_PORT_BUILTIN_MODULES \
        ...
              BUILTIN_MODULE_NEW_MODULE \
        
        
        1 Reply Last reply Reply Quote 0
        • lukasmaximusL Offline
          lukasmaximus
          last edited by

          nice work, looking forward to try it out when it's ready

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post