Skip to content

Instantly share code, notes, and snippets.

@dmiddlecamp
Last active October 15, 2016 02:54
Show Gist options
  • Select an option

  • Save dmiddlecamp/ea5c03e73e884526a46b79bf1e7d6511 to your computer and use it in GitHub Desktop.

Select an option

Save dmiddlecamp/ea5c03e73e884526a46b79bf1e7d6511 to your computer and use it in GitHub Desktop.

Revisions

  1. dmiddlecamp revised this gist Oct 15, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion function_demo.ino
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    void setup() {
    Particle.fucntion("yourFunction", yourFunction);
    Particle.function("yourFunction", yourFunction);
    }

    int yourFunction(String cmd) {
  2. dmiddlecamp revised this gist Oct 15, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions function_demo.ino
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,5 @@ int yourFunction(String cmd) {
    digitalWrite(D7, HIGH);
    delay(150);
    digitalWrite(D7, LOW);
    return 0;
    }
  3. dmiddlecamp created this gist Oct 15, 2016.
    9 changes: 9 additions & 0 deletions function_demo.ino
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    void setup() {
    Particle.fucntion("yourFunction", yourFunction);
    }

    int yourFunction(String cmd) {
    digitalWrite(D7, HIGH);
    delay(150);
    digitalWrite(D7, LOW);
    }