clear USB-pins, uart works now, correct thermo pin

This commit is contained in:
2021-08-19 16:54:01 +02:00
parent b6f872e19e
commit eefe46cae8
4 changed files with 7 additions and 10 deletions

View File

@@ -28,7 +28,7 @@
//#define TFT_MOSI PA7
//#define TFT_SCLK PA5
#define TFT_DC PB1
#define TFT_RST PA12
#define TFT_RST PA8
#define TFT_CS PB0

View File

@@ -3,18 +3,12 @@
// #define LCD_MOSI PA7
// #define LCD_SCLK PA5
// #define LCD_RES PA12
// #define LCD_RES PA8
// #define LCD_DC PB1
// #define LCD_CS PB0
#define THERM_CS PB4
#define THERM_SO PB5
#define THERM_CS PB5
#define THERM_SO PB4
#define THERM_CL PB6
#define BUt_LEFT PB15
#define BUt_RIGHT PA10
#define BUT_UP PA11
#define BUT_DOWN PA9
#define BUT_CENTER PA8
#define HEAT_OUT PA2

View File

@@ -11,6 +11,8 @@ void initStatus(void)
{
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(115200);
delay(500);
Serial.println("Heat Plate controller V1");
}
void handleStatus(void)

View File

@@ -21,6 +21,7 @@ void handleThermo(void)
if (timeNow - thermo_lastTime > THERMO_INTERVAL)
{
lastTemperature = thermocouple->readCelsius();
Serial.printf("Thermocouple = %d\n",lastTemperature);
}
//delay(100); // optionally, only to delay the output of information in the example.