2026-05-06 20:30:08 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <Wire.h>
|
|
|
|
|
#include <Adafruit_GFX.h>
|
|
|
|
|
#include <Adafruit_SSD1306.h>
|
|
|
|
|
|
|
|
|
|
#define OLED_SDA 21
|
|
|
|
|
#define OLED_SCL 22
|
|
|
|
|
#define OLED_RST -1
|
|
|
|
|
|
|
|
|
|
#define SCREEN_WIDTH 128
|
|
|
|
|
#define SCREEN_HEIGHT 64
|
|
|
|
|
|
|
|
|
|
enum class DisplayError : int16_t {
|
|
|
|
|
OK = 0,
|
|
|
|
|
INIT_FAILED = -1
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-06 20:31:45 +02:00
|
|
|
DisplayError displayInit();
|
2026-05-06 20:30:08 +02:00
|
|
|
void displayGasIndex(uint32_t pulses);
|
|
|
|
|
|