Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am lozaning on github.
  • I am lozaning (https://keybase.io/lozaning) on keybase.
  • I have a public key ASCqGzycOSBKHLg4BaRB1FOdHWcFcYawA6Cnye1pyWWWeAo

To claim this, I am signing this object:

@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>
<?xml version="1.0" encoding="utf-8"?>
<ItemLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<OperationRequest>
<HTTPHeaders>
<Header Name="UserAgent" Value="Python-urllib/3.4"/>
</HTTPHeaders>
<RequestId>
43df8903-3b22-42a8-9203-79a106bae664
</RequestId>
<Arguments>
<?xml version="1.0" encoding="utf-8"?>
<ItemLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<OperationRequest>
<HTTPHeaders>
<Header Name="UserAgent" Value="Python-urllib/3.4"/>
</HTTPHeaders>
<RequestId>
43df8903-3b22-42a8-9203-79a106bae664
</RequestId>
<Arguments>
<?xml version="1.0" encoding="utf-8"?>
<ItemLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<OperationRequest>
<HTTPHeaders>
<Header Name="UserAgent" Value="Python-urllib/3.4"/>
</HTTPHeaders>
<RequestId>
43df8903-3b22-42a8-9203-79a106bae664
</RequestId>
<Arguments>