Skip to content

Instantly share code, notes, and snippets.

@ogiewon
ogiewon / Shield_Garage.ino
Created July 12, 2014 02:59
Shield Garage
//*****************************************************************************
#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>
//*****************************************************************************
// Pin Definitions | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
// V V V V V V V V V V V V V V V V V V V V V V V V V V V V V
//*****************************************************************************
#define PIN_LED 13
@ogiewon
ogiewon / Arduino.groovy
Created July 12, 2014 02:55
Arduino Groovy
/**
* Arduino
*
* Copyright 2014 Daniel Ogorchock
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@ogiewon
ogiewon / VirtualtoArduinoMultiplexer.groovy
Created July 12, 2014 02:45
Virtual to Arduino Multiplexer
/**
* Virtual to Arduino Multiplexer
*
* Copyright 2014 Daniel Ogorchock
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@ogiewon
ogiewon / VirtualContactSensor.groovy
Created July 12, 2014 02:43
VirtualContactSensor
/**
* virtualContact
*
* Copyright 2014 Daniel Ogorchock
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@ogiewon
ogiewon / VirtualGarageDoor.groovy
Last active August 29, 2015 14:03
Garage Door Device Type
/**
* Virtual Garage Door
*
* Copyright 2014 Daniel Ogorchock
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
/*
* This is an updated version that will hopefully help other who just starting out with
* the SmartThings Arduino Shield. The earlier versions of this file had not been
* updated with the newer "definition, capability, attribute, and command" section. Without
* this new section, the Device Type will only partially work (just the on/ff switch).
*
* Author: ogiewon
* Date: 2014-06-20
*
* Credit to urman the original author...