Code Monkey home page Code Monkey logo

micropythonecci's Introduction

MicroPythonECCI

ECCI MicroPython Course. Follow these instructions to set up the environment.

Please install virtualenv just once on PC, see: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/

If you have problems with wheels see: https://pythonwheels.com/

for windows install the drivers https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers

  1. Create a folder which will contain the project

  2. Open it on VScode

  3. Create a virtual enviroment with this line on VScode workspace (folder) terminal

    python3 -m venv env	
    
  4. Activate the virtual environment

    for linux use :

    source env/bin/activate
    

    for windows use (you also need to install powershell over VS):

    .\env\Scripts\activate
    
  5. Install pip request

    pip3 install requests
    
  6. Install ampy tool

     pip3 install adafruit-ampy
    
  7. Deactivate de ESP debug (through serial terminal prompt - baudrate 115200)

    import esp
    esp.osdebug(None)
    
  8. Create the script with main.py name and run it on ESP

    ampy --port "here goes the port path" run main.py
    
  9. Send the main.py file to ESP

    ampy --port "here goes the port path" put main.py
    
  10. (optional) if you want to read files from the ESP

    ampy --port "here goes the port path" get "here goes the file name".py
    
  11. when you finished the work of the day deactivate the virtual environment

    deactivate
    

For further work sessions just activate an deactivate the virtual environment

micropythonecci's People

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.