Skip to content

BEKK-IoT/arduino-uno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-uno

Setup for the Arduino uno

Installing

  • First flash your arduino-uno with the Firmata: StandarFirmata. Can be found in the default Arduino software under File -> Examples -> Firmata -> StandarFirmata
  • Install dependencies with: npm install

Running

  • Run the app: npm run app

Example: Blinking LED

Arduino-uno

import { firebase, five } from 'devices-core';
const TEAM = 'my-awsome-team-name';
const fb = new firebase(TEAM);
const board = new five.Board();

board.on("ready", function() {
  const led = new five.Led(13);
  // Send a greet event to firebase
  fb.send('greet', {name: 'world'});

  // Wait for a greet event from firebase to turn the led on
  fb.on('greet', `users/${TEAM}`, () => led.on());

});

Refrences

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published