Revert "add heltec_v4 tft expansion box"

This reverts commit 310618e689.
This commit is contained in:
Scott Powell 2025-11-27 21:34:52 +11:00
parent ffbc24b3e7
commit 3ddfdd477b
8 changed files with 45 additions and 268 deletions

View file

@ -7,10 +7,6 @@ bool SSD1306Display::i2c_probe(TwoWire& wire, uint8_t addr) {
}
bool SSD1306Display::begin() {
if (!_isOn) {
if (_peripher_power) _peripher_power->claim();
_isOn = true;
}
#ifdef DISPLAY_ROTATION
display.setRotation(DISPLAY_ROTATION);
#endif
@ -19,18 +15,12 @@ bool SSD1306Display::begin() {
void SSD1306Display::turnOn() {
display.ssd1306_command(SSD1306_DISPLAYON);
if (!_isOn) {
if (_peripher_power) _peripher_power->claim();
_isOn = true;
}
_isOn = true;
}
void SSD1306Display::turnOff() {
display.ssd1306_command(SSD1306_DISPLAYOFF);
if (_isOn) {
if (_peripher_power) _peripher_power->release();
_isOn = false;
}
_isOn = false;
}
void SSD1306Display::clear() {