Created
November 9, 2014 19:44
-
-
Save BenGriffiths/9c9215436fcaa54252fc to your computer and use it in GitHub Desktop.
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 <LiquidCrystal.h> | |
#include <SPI.h> | |
#include <Ethernet.h> | |
#include <string.h> | |
LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7); | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; | |
char server[] = "www.mysite.com"; | |
IPAddress ip(192,168,0,56); | |
EthernetClient client; | |
int sendAfter = 55; | |
float sinceLastSend = 55; | |
int timer = 55; | |
int loopDelay = 100; | |
int therm1 = 0; | |
int therm2 = 1; | |
const int numReadings = 60; | |
int tempReadings[numReadings]; | |
int tempIndex = 0; | |
float tempTotal = 0; | |
float tempAverage = 0; | |
float tempCurrent = 0; | |
char tempBuffer[20]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment