#ifndef _DISPLAY_H_DEF_ #define _DISPLAY_H_DEF_ class Display { public: void Display(const uint8_t width=128, const uint8_t height=32, const resetPin=-1); void begin(); protected: void send_command(const uint8_t c); void send_commands(const uint8_t *cc, const uint8_t n); private: const uint8_t _width { 128 }; const uint8_t _height { 32 }; const uint8_t _comPin { 0x02 }; const uint8_t _i2caddr { 0x3C }; const uint8_t _contrast { 0x8F }; uint8_t _rstPin { -1 }; TwoWire* _wire { nullptr }; }; #endif