This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
****************************************************************************** | |
* @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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int motion = 0; | |
int buzzer = 1; | |
void setup() { | |
pinMode(motion, INPUT); | |
pinMode(buzzer, OUTPUT); | |
Spark.variable(motion); | |
Spark.function(buzz); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
NewerOlder