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
/* | |
* Use the I2C bus with EEPROM 24LC64 | |
* Sketch: eeprom.pde | |
* | |
* Author: hkhijhe | |
* Date: 01/10/2010 | |
* | |
* | |
*/ |
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the Uno and | |
Leonardo, it is attached to digital pin 13. If you're unsure what | |
pin the on-board LED is connected to on your Arduino model, check | |
the documentation at http://www.arduino.cc | |
This example code is in the public domain. | |
modified 8 May 2014 | |
by Scott Fitzgerald |
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
#include "LowPower.h" //https://github.com/rocketscream/Low-Power | |
#include <Wire.h> | |
#include <SPI.h> | |
#include <DS3232RTC.h> //http://github.com/JChristensen/DS3232RTC | |
#include <Streaming.h> //http://arduiniana.org/libraries/streaming/ | |
#include<stdlib.h> | |
#include <SD.h> | |
#include <Adafruit_Sensor.h> | |
#include <Adafruit_BMP085_U.h> | |
#include <Time.h> |
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
#include <Wire.h> | |
#include <Adafruit_ADS1015.h> // https://github.com/adafruit/Adafruit_ADS1X15 | |
// Adafruit_ADS1115 ads; /* Use this for the 16-bit version */ | |
Adafruit_ADS1015 ads; /* Use thi for the 12-bit version */ | |
void setup(void) | |
{ | |
Serial.begin(9600); | |
Serial.println("Hello!"); |
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
#include <Wire.h> | |
#include <Adafruit_ADS1015.h> // https://github.com/adafruit/Adafruit_ADS1X15 | |
Adafruit_ADS1115 ads; /* Use this for the 16-bit version */ | |
//Adafruit_ADS1015 ads; /* Use thi for the 12-bit version */ | |
void setup(void) | |
{ | |
Serial.begin(9600); | |
Serial.println("Hello!"); |
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
#include <Wire.h> | |
#include <Adafruit_ADS1015.h> // https://github.com/adafruit/Adafruit_ADS1X15 | |
#include <OneWire.h> //http://www.pjrc.com/teensy/td_libs_OneWire.html | |
#include <DallasTemperature.h> //https://github.com/milesburton/Arduino-Temperature-Control-Library | |
Adafruit_ADS1115 ads; /* Use this for the 16-bit version */ | |
//Adafruit_ADS1015 ads; /* Use thi for the 12-bit version */ | |
//1-wire sensor |
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
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
// Data wire is plugged into port 2 on the Arduino | |
#define ONE_WIRE_BUS 6 | |
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs) | |
OneWire oneWire(ONE_WIRE_BUS); | |
// Pass our oneWire reference to Dallas Temperature. |
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
#include "LowPower.h" //https://github.com/rocketscream/Low-Power | |
#include <Wire.h> | |
#include <SPI.h> | |
#include <DS3232RTC.h> //http://github.com/JChristensen/DS3232RTC | |
#include <Streaming.h> //http://arduiniana.org/libraries/streaming/ | |
#include<stdlib.h> | |
#include <SD.h> | |
#include <Time.h> | |
//sleeping stuff |
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
#include <TimerOne.h> | |
// This example uses the timer interrupt to blink an LED | |
// and also demonstrates how to share a variable between | |
// the interrupt and the main program. | |
float vcc = 5; // volts | |
float vground = 2.51; // volts -- the virtual ground value | |
const int led = 3; // the pin with a LED | |
float r1 = 3190; // the current-voltage resistance --> amplification |
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
// This is a basic snapshot sketch using the VC0706 library. | |
// On start, the Arduino will find the camera and SD card and | |
// then snap a photo, saving it to the SD card. | |
// Public domain. | |
// If using an Arduino Mega (1280, 2560 or ADK) in conjunction | |
// with an SD card shield designed for conventional Arduinos | |
// (Uno, etc.), it's necessary to edit the library file: | |
// libraries/SD/utility/Sd2Card.h | |
// Look for this line: |