Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

MaibornWolff/espruino8266-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Espruiono 8266 Playground

Prerequisites

Installation on macOS

Having brew installed:

# Note: python and git should be pre-installed on macOS
# If not:
brew install python

brew install n
n latest

pip install esptool

Installation on Windows

Having chocolatey installed:

choco install git
choco install python2
choco install nodejs

pip install esptool

npm install --global --production windows-build-tools
npm config set msvs_version 2015 --global

Flashing the hardware

cd device
npm install
npm run device:flash
npm run espruino:reset

(optional) Connecting the Espruino IDE

  • Settings -> Communications -> Baud rate: 115200
  • Connect to /dev/cu.SLAB_USBtoUART or COM#

First example code

Paste the following code in the left editor pane:

const LED = NodeMCU.D4;

let on = false;
setInterval(function() {
  on = !on;
  LED.write(on);
}, 500);

Upload the code and the blue LED indicator should blink.

Let's go!

Build the backend

Run the following in a console, to create a serial connection that uploads the code to the micro controller:

npm run espruino:console

Now use another terminal to build to backend:

# Build once...
npm run build

# ... or keep build task in watch mode
npm run build:watch

Run the frontend

Use a different terminal for running the frontend:

cd <project>/web-ui
npm install
npm start

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published