-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2_Setup.ino
More file actions
29 lines (23 loc) · 721 Bytes
/
2_Setup.ino
File metadata and controls
29 lines (23 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
void setup(void)
{
lcd.begin(); //Initializing display
lcd.backlight(); //To Power ON the back light
Serial.begin(9600); // start serial port
// JC_button: begin monitoring buttons
LoadOnOff.begin();
SetButton.begin();
CursorToggle.begin();
ValueDown.begin();
ValueUp.begin();
LoadOff();
SetLimits();
// Temperature sensor
sensors.begin(); // Start up the temperature sensor library
sensors.setWaitForConversion(false);
sensors.requestTemperatures();
delayInMillis = 1000 / (1 << (12 - tempResolution));
lastTempRequest = millis();
pinMode(FGenPin, OUTPUT);
pinMode(ControlPin, OUTPUT);
// potValue = analogRead(PotInputPin);
}