wouterverweirder / javascript-workout

presentation demonstrating usage of javascript with electronics in different scenarios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Javascript Workout

Interactive presentation built with electron & nodejs. (Using electron 2.0.5 on node 8.5.0)

installing

CXXFLAGS="-mmacosx-version-min=10.9" LDFLAGS="-mmacosx-version-min=10.9" yarn

building

npm run develop

running

Presentation:

npm run presentation

Server (optional):

npm run server

People can surf to http://REPLACE_WITH_YOUR_IP:5000 and follow the slides on their screen.

##spark core (heartrate)

To link a spark-core to your local cloud, do the following after installing the particle-cli:

  1. Identify the spark core: press mode until blue > run particle identify
  2. Put the spark core into DFU by pressing mode + reset, release reset while holding mode for about 3 seconds (until led flashes yellow)
  3. Handle the server key: particle keys server default_key.pub.pem 192.168.2.1
  4. cd into core_keys
  5. Place core into DFU
  6. particle keys save INPUT_CORE_ID_HERE
  7. reset the core

You will need to flash the firmware (spark/pulsesensor-udp) to the spark-core:

  1. particle compile core src/spark-pulse-udp --saveTo dist/spark-pulse-udp.bin
  2. particle flash --usb dist/spark-pulse-udp.bin

https://github.com/chuank/spark-protocol

About

presentation demonstrating usage of javascript with electronics in different scenarios

License:MIT License


Languages

Language:JavaScript 81.3%Language:C++ 12.0%Language:CSS 5.5%Language:C 1.2%