mirror of
https://github.com/arwidcool/Solder-Plate.git
synced 2024-09-23 18:58:22 +02:00
Added In VOltage to OLED Reflow stage (Important because it shows if your Power supply is not giving enogh voltage)
This commit is contained in:
parent
9a1f595bb5
commit
7d6fe95ff9
@ -287,9 +287,9 @@ void OledDisplay::handleReflowState()
|
||||
centerText(("Target: " + String(targetTemp)).c_str(), DisplayTextAlignment::END, DisplayTextAlignment::END);
|
||||
|
||||
display.setTextSize(1, 1);
|
||||
display.setCursor(25, 40);
|
||||
display.setCursor(15, 16);
|
||||
float systemVoltage = analogRef.calculateInputVoltage();
|
||||
display.println("In:"+String(systemVoltage));
|
||||
display.println("In Voltage:"+String(systemVoltage));
|
||||
|
||||
display.display();
|
||||
}
|
||||
|
11
src/displays/tft.cpp
Normal file
11
src/displays/tft.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include "tft.h"
|
||||
|
||||
extern Adafruit_ST7789 tft;
|
||||
|
||||
TFT::TFT()
|
||||
{
|
||||
}
|
||||
|
||||
TFT::~TFT()
|
||||
{
|
||||
}
|
21
src/displays/tft.h
Normal file
21
src/displays/tft.h
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef TFT_H
|
||||
#define TFT_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Adafruit_ST7789.h> // Include the ST7789 library
|
||||
|
||||
class TFT {
|
||||
public:
|
||||
TFT();
|
||||
~TFT();
|
||||
|
||||
// Add your class methods here
|
||||
void clear();
|
||||
|
||||
|
||||
private:
|
||||
// Add your private members here
|
||||
|
||||
};
|
||||
|
||||
#endif // TFT_H
|
@ -6,8 +6,7 @@
|
||||
#include "./EEPROMDataManager.h"
|
||||
#include "./PID/PidController.h"
|
||||
|
||||
//Comment out to disable debug messages
|
||||
|
||||
//Comment out to enable debug messages
|
||||
//#define DEBUG
|
||||
|
||||
//For printing debug messages
|
||||
|
@ -4,11 +4,13 @@
|
||||
#include "../common.h"
|
||||
#include "../globals.h"
|
||||
|
||||
// If you didnt solder the LEDS in order, change the order here
|
||||
#define LEFT_LED_PIN 20
|
||||
#define MID_LED_PIN 18
|
||||
#define RIGHT_LED_PIN 19
|
||||
// If you didnt solder the LEDS in order, change the order here just change the pin numbers till it matches your board
|
||||
#define LEFT_LED_PIN 20 //Should be RED
|
||||
#define MID_LED_PIN 18 //Should be YELLOW
|
||||
#define RIGHT_LED_PIN 19 //Should be GREEN
|
||||
#define GREEN_LED_PIN RIGHT_LED_PIN
|
||||
|
||||
|
||||
enum LedDesiredState
|
||||
{
|
||||
LED_ON,
|
||||
|
@ -25,6 +25,8 @@
|
||||
// Create an instance of the Adafruit ST7789 class using the custom SPI pins
|
||||
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, MOSI, SCK, TFT_RST);
|
||||
|
||||
|
||||
|
||||
#define MOSTFET_PIN 17
|
||||
|
||||
double currentTemp = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user