Skip to content

Instantly share code, notes, and snippets.

@zsup
zsup / gist:7843623
Last active December 30, 2015 14:39
Spark Servo, first commit
/**
******************************************************************************
* @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 December 20, 2015 14:09
A Gist describing the code on a Spark-powered security system (motion detector and buzzer).
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 22:29
This is a test gist
test