feat: add display of counter value

This commit is contained in:
Alexis Fourmaux 2026-05-06 20:30:08 +02:00
parent 9766a15a3a
commit d6712d80d6
5 changed files with 115 additions and 8 deletions

View file

@ -0,0 +1,21 @@
#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
};
void displayInit();
void displayGasIndex(uint32_t pulses);