This file contains 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
// DS3231 Class is by Seeed Technology Inc(http://www.seeedstudio.com) and used | |
// in Seeeduino Stalker v2.1 for battery management(MCU power saving mode) | |
// & to generate timestamp for data logging. DateTime Class is a modified | |
// version supporting day-of-week. | |
// Original DateTime Class and its utility code is by Jean-Claude Wippler at JeeLabs | |
// http://jeelabs.net/projects/cafe/wiki/RTClib | |
// Released under MIT License http://opensource.org/licenses/mit-license.php | |
#include <Wire.h> |
This file contains 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
#include <IRremote.h> | |
int RECV_PIN = 11; | |
IRrecv irrecv(RECV_PIN); | |
IRsend irsend; | |
boolean recording = true; | |
decode_results results; |
This file contains 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
/* Raw IR decoder sketch! | |
This sketch/program uses the Arduno and a PNA4602 to | |
decode IR received. This can be used to make a IR receiver | |
(by looking for a particular code) | |
or transmitter (by pulsing an IR LED at ~38KHz for the | |
durations detected | |
Code is public domain, check out www.ladyada.net and adafruit.com | |
for more tutorials! |
This file contains 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
Ready to decode IR! | |
Received: | |
OFF ON | |
38828 usec, 3520 usec | |
1500 usec, 580 usec | |
1080 usec, 580 usec |
This file contains 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
// HSV fade/bounce for Arduino - scruss.com - 2010/09/12 | |
// Note that there's some legacy code left in here which seems to do nothing | |
// but should do no harm ... | |
#include "OneWire.h" | |
//#include "Streaming.h" | |
const int DS18S20_Pin = 2; //DS18S20 Signal pin on digital 2 | |
#define MIN_TEMP 18 | |
#define MAX_TEMP 30 |
This file contains 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
// HSV fade/bounce for Arduino - scruss.com - 2010/09/12 | |
// Note that there's some legacy code left in here which seems to do nothing | |
// but should do no harm ... | |
// don't futz with these, illicit sums later | |
#define RED 9// pin for red LED | |
#define GREEN 10 // pin for green - never explicitly referenced | |
#define BLUE 11 // pin for blue - never explicitly referenced | |
#define SIZE 255 | |
#define DELAY 20 |
This file contains 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
// HSV fade/bounce for Arduino - scruss.com - 2010/09/12 | |
// Note that there's some legacy code left in here which seems to do nothing | |
// but should do no harm ... | |
#include "OneWire.h" | |
#include "Streaming.h" | |
#include <XBee.h> | |
const int DS18S20_Pin = 2; //DS18S20 Signal pin on digital 2 | |
#define MIN_TEMP 16 |
This file contains 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
import com.googlecode.flyway.core.Flyway; | |
import com.googlecode.flyway.core.metadatatable.MetaDataTableRow; | |
import com.googlecode.flyway.core.migration.SchemaVersion; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.InitializingBean; | |
import javax.sql.DataSource; | |
import java.util.List; | |
public class DatabaseInitialization implements InitializingBean { |
This file contains 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
public class WeatherConditions { | |
private Measurable<Temperature> temperature; | |
private Measurable<Temperature> feelsLikeTemperature; | |
private Measurable<Temperature> dewPoint; | |
private Measurable<Dimensionless> relativeHumidity; | |
private Measurable<Pressure> pressure; | |
private Measurable<Velocity> windSpeed; | |
private Measurable<Velocity> windGust; | |
private Measurable<Angle> windDirection; | |
private WeatherIcon icon; |
OlderNewer