It compiles, but will it work?
This commit is contained in:
parent
3f554449a7
commit
5412793db6
@ -10,7 +10,9 @@
|
||||
#include <LiquidMenu.h> // LiquidMenu_config.h needs to be modified to use I2C.
|
||||
#include <Button.h>
|
||||
#include <MD_REncoder.h>
|
||||
#include <Adafruit_MAX31865.h>
|
||||
|
||||
// My Includes
|
||||
#include "config.h"
|
||||
#include "menu.h"
|
||||
|
||||
@ -33,6 +35,8 @@ encoder_state EncoderState = ENC_ST_LINE;
|
||||
Button EncoderButton(encoderBTN);
|
||||
MD_REncoder RotaryEncoder(encoderDT, encoderCLK);
|
||||
LiquidCrystal_I2C lcd(0x27,20,4);
|
||||
Adafruit_MAX31865 kettleRTD(kettleRTDCS);
|
||||
Adafruit_MAX31865 mashRTD(mashRTDCS);
|
||||
|
||||
/* ---------- Network bits ---------- */
|
||||
EthernetClient net;
|
||||
@ -51,6 +55,8 @@ void setup() {
|
||||
RotaryEncoder.begin();
|
||||
EncoderButton.begin();
|
||||
Ethernet.begin(mac, ip);
|
||||
kettleRTD.begin(MAX31865_3WIRE);
|
||||
mashRTD.begin(MAX31865_3WIRE);
|
||||
Serial.println("Setting up...");
|
||||
|
||||
// Attach functions menu lines
|
||||
@ -187,11 +193,19 @@ char* KettleSetpoint() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the setpoint as char.
|
||||
* Dummy function for now.
|
||||
* Return the actual temp as char.
|
||||
*/
|
||||
char* KettleActual() {
|
||||
return (char*)"NA";
|
||||
int temp = (int)(kettleRTD.temperature(RNOMINAL_KETTLE, RREF_KETTLE)*10);
|
||||
return (char*)(temp/10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the actual temp as char.
|
||||
*/
|
||||
char* MashActual() {
|
||||
int temp = (int)(mashRTD.temperature(RNOMINAL_MASH, RREF_MASH)*10);
|
||||
return (char*)(temp/10);
|
||||
}
|
||||
|
||||
char* SetpointUnit(){
|
||||
|
Loading…
Reference in New Issue
Block a user