Skip to content

Instantly share code, notes, and snippets.

@lozaning
lozaning / on-off-shield-example.groovy
Created September 20, 2016 23:41 — forked from aurman/on-off-shield-example.groovy
Device Handler Code for On/Off Shield (example)
/*
* On/Off Shield (example)
*
* Author: urman
* Date: 2013-03-14
* Revision: 2014-07-10
* Capabilities:
* Switch
* Custom Attributes:
* greeting
@lozaning
lozaning / Shield_on_off_hello.ino
Created September 20, 2016 23:37 — forked from aurman/Shield_on_off_hello.ino
Arduino On Off Hello
//*****************************************************************************
/// @file
/// @brief
/// Arduino SmartThings Shield LED Example
//*****************************************************************************
#include <SoftwareSerial.h> //TODO need to set due to some weird wire language linker, should we absorb this whole library into smartthings
#include <SmartThings.h>
#define PIN_THING_RX 3
@lozaning
lozaning / clapper.ino
Created September 2, 2016 21:09 — forked from mager/clapper.ino
Smart Clapper Arduino sketch
/*
* SmartThings Clapper
* Author: Gilbert Chan
* Update: 10/18/14
* Contributors: Manoj Kunthu, Andrew Mager
*/
#include <SoftwareSerial.h>
#include <SmartThings.h>