#include <LiquidCrystal.h>
// Initialize the LiquidCrystal library with the interface pins
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
byte degreeSymbol[8] = {
0b00110,
0b01001,
0b01001,
0b00110,
0b00000,
0b00000,
0b00000,
0b00000
};
void setup() {
lcd.createChar(0, degreeSymbol); // Create custom degree symbol
lcd.setCursor(0, 0);
lcd.print("Temp: 25");
lcd.write(byte(0)); // Display the custom degree symbol
lcd.print("C");
}
void loop() {
// No need for code here as we're displaying a static message
}