Skip to content

Instantly share code, notes, and snippets.

@zsup
zsup / gist:7843623
Last active Dec 30, 2015
Spark Servo, first commit
View gist:7843623
/**
******************************************************************************
* @file spark_wiring_servo.h
* @author Zach Supalla
* @version V1.0.0
* @date 06-December-2013
* @brief Header for spark_wiring_servo.h module
******************************************************************************
Copyright (c) 2013 Spark Labs, Inc. All rights reserved.
Copyright (c) 2010 LeafLabs, LLC.
@zsup
zsup / spark-motion.c
Last active Dec 20, 2015
A Gist describing the code on a Spark-powered security system (motion detector and buzzer).
View spark-motion.c
int motion = 0;
int buzzer = 1;
void setup() {
pinMode(motion, INPUT);
pinMode(buzzer, OUTPUT);
Spark.variable(motion);
Spark.function(buzz);
}
@zsup
zsup / test gist
Created May 27, 2013
This is a test gist