#include < TinyWireM.h > // I2C library for ATtiny85
#include < Tiny4kOLED.h > // OLED display library for ATtiny85
#include < OneWire.h > // Library for OneWire communication (DS18B20)
#include < DallasTemperature.h > // Library for DS18B20 temperature sensor
#define ONE_WIRE_BUS 3 // DS18B20 data line on PB3
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(& oneWire);
#define BUTTON_START_STOP 4 // Start/Stop button on PB4
#define BUTTON_INC 1 // Temperature increment button on PB1
#define BUTTON_DEC 5 // Temperature decrement button on PB5
bool isRunning = false; // Heating system status
int setTemp = 25; // Default set temperature
int currentTemp = 0;
void setup() {
pinMode(BUTTON_START_STOP, INPUT_PULLUP);
pinMode(BUTTON_INC, INPUT_PULLUP);
pinMode(BUTTON_DEC, INPUT_PULLUP);