From 5a719fb5e919863d8eb23b2cfc76cd4e89692cf4 Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Wed, 12 Mar 2014 13:52:11 -0700 Subject: [PATCH] Remove spark_blink example, it lives in cylon-spark --- examples/spark_blink/spark_blink.coffee | 13 --------- examples/spark_blink/spark_blink.js | 20 ------------- examples/spark_blink/spark_blink.litcoffee | 33 ---------------------- 3 files changed, 66 deletions(-) delete mode 100644 examples/spark_blink/spark_blink.coffee delete mode 100644 examples/spark_blink/spark_blink.js delete mode 100644 examples/spark_blink/spark_blink.litcoffee diff --git a/examples/spark_blink/spark_blink.coffee b/examples/spark_blink/spark_blink.coffee deleted file mode 100644 index 06c22f5..0000000 --- a/examples/spark_blink/spark_blink.coffee +++ /dev/null @@ -1,13 +0,0 @@ -Cylon = require '../..' - -Cylon.robot - connection: - name: 'spark', adaptor: 'spark', deviceId: '', accessToken: '' - - device: - name: 'led', driver: 'led', pin: 'D7' - - work: (my) -> - every 1.second(), -> my.led.toggle() - -.start() diff --git a/examples/spark_blink/spark_blink.js b/examples/spark_blink/spark_blink.js deleted file mode 100644 index a643071..0000000 --- a/examples/spark_blink/spark_blink.js +++ /dev/null @@ -1,20 +0,0 @@ -var Cylon = require('../..'); - -Cylon.robot({ - connection: { - name: 'spark', - adaptor: 'spark', - deviceId: '', - accessToken: '' - }, - - device: { - name: 'led', - driver: 'led', - pin: 'D7' - }, - - work: function(my) { - every(1..second(), function() { my.led.toggle(); }); - } -}).start(); diff --git a/examples/spark_blink/spark_blink.litcoffee b/examples/spark_blink/spark_blink.litcoffee deleted file mode 100644 index d633009..0000000 --- a/examples/spark_blink/spark_blink.litcoffee +++ /dev/null @@ -1,33 +0,0 @@ -# Spark - Blink - -For this example, we're going to connect to a Spark Core and make the LED on -pin D7 blink on a 1-second interval. Before we start, make sure you've got the -`cylon-spark` module installed. - -First, let's make sure to load the Cylon module: - - Cylon = require '../..' - -After we've got that done, we can start defining our robot: - - Cylon.robot - -We'll have a singular connection to a Spark Core, using the -previously-mentioned `cylon-spark` module. We'll also have one device, the LED -on pin D7. - - connection: - name: 'spark', adaptor: 'spark', deviceId: '', accessToken: '' - - device: - name: 'led', driver: 'led', pin: 'D7' - -Those are all the components for our robot, so next we'll define the work. All -we're going to do for this example is tell the LED to toggle every second. - - work: (my) -> - every 1.second(), -> my.led.toggle() - -And with all those pieces in place, we can tell the robot to get started: - - .start()