Advertisement
Guest User

Untitled

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