Skip to content

Xinyuan-LilyGO/micropython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LilyGo logo

🌟LilyGo-MicroPython🌟

1️⃣ Windows subsystem for linux(WSL)

  1. Control Panel -> Programs and Features -> Enable or Disable windows Features. Open the Windows Features dialog box, select the "Windows Subsystem for Linux" TAB, and click "OK" to wait for the system configuration to complete.

    1

  2. Open Microsoft Store.

    2

  3. Search for "ubuntu 22.04.5" and install it as prompted.

    3

  4. Open the downloaded "ubuntu 22.04.5" and display "Installing, this may take a few minutes..." .

    4

    Wait for a moment and then enter the username:

    5

    Then enter the password twice (remember the password you set here) :

    8

    After setting it up, you can successfully enter the WSL Ubuntu system.

    9

2️⃣ Download MobaXterm (terminal tool) and connect

  1. Open the MobaXterm website to download terminal tool.

    10

  2. After the download is complete, extract it and open the "MobaXterm_installer_25.2.msi" installation package in the folder. Follow the prompts to complete the installation.

    10-1

  3. After opening the software, select "Session" to connect.

    11

  4. First, select WSL. Then, in Distribution, choose the corresponding Ubuntu version to download and click ok.

    12

  5. Successfully entered the WSL Ubuntu system.

    13

3️⃣ Configure the python environment

  1. Point /usr/bin/python to /usr/bin/python3.

    sudo ln -s /usr/bin/python3 /usr/bin/python
    

Enter the password you just set:

14

  1. Update the software package list.

    sudo apt-get update
    

    16

    Update completed:

    17

  2. Installation environment:

    sudo apt-get install git wget libncurses-dev flex bison gperf python3 python3-pip python3-setuptools python3-serial python3-click python3-cryptography python3-future python3-pyparsing python3-pyelftools cmake ninja-build ccache libffi-dev libssl-dev python-is-python3
    

    18

    Installation completed:

    19

  3. Install "python3.10-venv".

    sudo apt install python3.10-venv
    

    19-1

    Installation completed:

    19-3

4️⃣ Esp-idf development environment

  1. Execute the following instructions in sequence in the command line mode of the linux subsystem:

    git clone https://github.com/Xinyuan-LilyGO/esp-gitee-tools.git
    

    21

    git clone https://github.com/Xinyuan-LilyGO/esp-idf.git
    

    23

  2. Enter the "esp-idf" folder.

    cd esp-idf
    

    24

  3. Switch branches.

    git checkout v5.2.2
    

    26

  4. Enter the "esp-gitee-tools" folder.

    cd ../esp-gitee-tools
    

    27

  5. Execute the script "submodule-update.sh".

    ./submodule-update.sh ~/esp-idf/
    

    28

    Run completed:

    29

  6. Execute the "install.sh" script.

    ./install.sh ~/esp-idf/
    

    30

    Run completed:

    31

  7. Configure environment variables.

    . /home/lilygo-micropython/esp-idf/export.sh
    

    32

    Configuration completed:

    33

5️⃣ Make the MicroPython firmware

  1. Exit the current folder and download micropython.

    cd ~
    
    git clone https://github.com/Xinyuan-LilyGO/micropython.git
    

    34

    Download completed. (If the download fails, please try again):

    35

  2. Enter the micropython folder and compile the "mpy-cross" tool.

    cd micropython
    
    make -C mpy-cross
    

    36

    Compilation completed: 37

  3. Enter the corresponding development board folder ("ports/xxx"), here taking "LILYGO_T_Connect_Pro_S3" as an example.

    cd ports/LILYGO_T_Connect_Pro_S3
    

    38

  4. Initialize the sub-module.

    make submodules
    

    39

  5. Make the firmware.

    make
    

    40

    Make completed:

    41

  6. Download the compiled firmware and click the mouse to enter the "build-ESP32_GENERIC_S3" folder (if you are using ESP32, the folder name is "build-ESP32_GENERIC").

    41-1

  7. In the file, find the "firmware.bin" file, right-click the mouse, and select "Download" to download it to your computer.

    42

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published