Skip to content

Instantly share code, notes, and snippets.

@BenGriffiths
Created November 9, 2014 19:44
Show Gist options
  • Save BenGriffiths/9c9215436fcaa54252fc to your computer and use it in GitHub Desktop.
Save BenGriffiths/9c9215436fcaa54252fc to your computer and use it in GitHub Desktop.
#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