Coder Social home page Coder Social logo

vizesp's Introduction

Viz-ESP

Using Arduino-IDE

On-board LED: GPIO PIN 2

Using Python

  • Get esptool.py: https://github.com/espressif/esptool pip3 install esptool rshell

  • Erase existing firmware: esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART erase_flash

  • Download and Flash MicroPython firmware

  • Download: https://micropython.org/download#esp32

  • Flash: esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash -z 0x1000 esp32-idf3-20190529-v1.11.bin

  • Connect to Board using rshell rshell --port /dev/tty.SLAB_USBtoUART

>>> import machine
>>> pin = machine.Pin(2, machine.Pin.OUT)
>>> pin.on()
>>> pin.off()

Docs: https://docs.micropython.org/en/latest/esp32/tutorial/intro.html

Ref:

  • https://micropython.org/unicorn/

Using JavaScript

npm install espruino -g

  • espruino --list

  • Reset the Board espruino -p /dev/tty.SLAB_USBtoUART -b 115200 -e 'reset(); digitalWrite(2, 1); save();'

  • Push the Code and Save espruino -p /dev/tty.SLAB_USBtoUART -b 115200 -e 'save()' WiFiConnect.js


Connect to Board (over the serial port)

  • Using rshell rshell --port /dev/tty.SLAB_USBtoUART

  • Using screen screen /dev/tty.SLAB_USBtoUART 115200

  • Using minicom minicom --baudrade 115200 --device /dev/tty.SLAB_USBtoUART

vizesp's People

Contributors

vs4vijay avatar

Watchers

 avatar  avatar

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.