Hi,
I am using the adafruit oled display library and I can't remove the adafruit logo on the screen. Any help is great!
Thank you,
Jaden
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <max6675.h>
Adafruit_SSD1306 display = Adafruit_SSD1306();
int thermoDO = 7;
int thermoCS = 5;
int thermoCLK = 6;
MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
int potpin = 0;
int val;
void setup() {
pinMode (9, OUTPUT);
pinMode (10, OUTPUT);
display.begin(SSD1306_SWITCHCAPVCC, 0x3D);
//Serial.begin(9600);
delay(500);
}
void loop() {
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0, 0);
display.print("F = ");
display.println(thermocouple.readFahrenheit());
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0, 10);
display.print("Set = ");
display.println(val);
delay(2000);
val = analogRead(potpin);
if (thermocouple.readFahrenheit() > val) {
digitalWrite(10, LOW);// set pin 10 LOW
} else {
digitalWrite(10, HIGH);// set pin 10 HIGH
if (thermocouple.readFahrenheit() > val) {
digitalWrite(9, HIGH);
delay(5000);
digitalWrite(9, LOW);
} else {
digitalWrite(9, LOW);
}
delay(1000);
}
}