Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <math.h> // Needed for the logarithmic NTC thermistor temp sensor
- #include <LiquidCrystal.h> // For the 4x20 LCD status screen
- #include <Wire.h> // Used for the I2C RTC chip
- #include "Chronodot.h" // Used to fetch and decode the RTC data
- Chronodot RTC; // Create the RTC object
- LiquidCrystal lcd(8,9,10,11,12,13); // These are the pins used for the parallel LCD
- char* dayOfWeek[]={
- "Sunday ", "Monday", "Tuesday", "Wednesday", "Thursday ", "Friday ", "Saturday"};
- // using pointers to point at an array of arrays of characters.
- char* currentMonth[]={
- "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
- boolean pm=false; // AM or PM, for the clock
- unsigned long cycleStart; // Used for keeping track of how long it's been washing.
- double tempArray[25]; // Array of temperatures, to average readings and reduce jitter
- byte arrayIndex=0; // Used to count temperature samples
- #define ventPin 7
- #define soapDispensor 6
- #define waterInlet 5
- #define drainPin 4
- #define washMotor 3
- #define heaterPin 2
- #define goButton A1
- #define tempSensor A2
- #define goLight 0
- #define stopLight 1
- #define stopButton A3
- #define tiltSensor A0
- //void dLay(integer howLong) {
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement