Git Product home page Git Product logo

esp32-micropython's Introduction

ESP32 MicroPython

Very rough install guide...

Requirements

Node.js (with `yarn` if building)
Python 3.7
esptool.py (`pip3 install esptool`)

Environment

Need to discover port path on your system. Typically examples:

For macOS:

export ESPTOOL_PORT=/dev/cu.SLAB_USBtoUART

For Windows (use Device Manager to discover the actual port number):

export ESPTOOL_PORT=COM3

For Linux (the default):

export ESPTOOL_PORT=/dev/ttyUSB0

Quick Install

cd ~/src
git clone https://github.com/mishafarms/esp32-micropython.git
cd esp32-micropython
export ESPTOOL_PORT=/dev/ttyUSB0 (Windows:ESPTOOL_PORT=COM3)
(plug in the Esp32)
yarn run flash-merged

Full Build

Clone Archives

(git clone all arcives to the ~/src folder)
cd ~/src
git clone https://github.com/mishafarms/esp32-micropython.git
git clone https://github.com/mishafarms/edublocks-micropython.git
git clone https://github.com/mishafarms/micropython.git
git clone https://github.com/mishafarms/OttoDIYPython.git
export ESPTOOL_PORT=/dev/ttyUSB0

Build panel-web-app

cd ~/src/esp32-micropython/panel
yarn
yarn run build

Build EduBlocks

cd ~/src/edublocks-micropython
yarn
yarn run build

Build Micropython

cd ~/src/esp32-micropython
yarn
yarn run build-mp (if you get an error run indented lines)
	cd ~/src/micropython/ports/esp32/
	git config --global --add safe.directory /opt/esp/idf/components/openthread/openthread
	make BOARD=WROVER_16M submodules
	cd ~/src/esp32-micropython
yarn run build-mp (if you get an error run indented line)
	yarn install
yarn run build-mp		

Bundle assets

cd ~/src/esp32-micropython
yarn
yarn run mount-sys-linux         # Or: yarn run mount-sys-osx
yarn run bundle
yarn run bundle-otto
yarn run umount-sys-linux        # Or: yarn run umount-sys-osx
yarn run merge

Flash on to ESP32

cd ~/src/esp32-micropython
yarn run flash-erase (Optional)
yarn run flash-merged

esp32-micropython's People

Contributors

cjdell avatar mishafarms avatar sfranzyshen avatar

Watchers

 avatar

Forkers

sfranzyshen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.