Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void normalDisplay(void);
// normal brightness & contrast: contrast = 100
void setContrast(uint8_t contrast, uint8_t precharge = 241, uint8_t comdetect = 64);

// Convenience method to access
// Convenience method to access setContrast with only brightness parameter
void setBrightness(uint8_t);

// Turn the display upside down
Expand Down
1 change: 0 additions & 1 deletion src/OLEDDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,6 @@ void OLEDDisplay::setContrast(uint8_t contrast, uint8_t precharge, uint8_t comde
sendCommand(SETVCOMDETECT); //0xDB, (additionally needed to lower the contrast)
sendCommand(comdetect); //0x40 default, to lower the contrast, put 0
sendCommand(DISPLAYALLON_RESUME);
sendCommand(NORMALDISPLAY);
sendCommand(DISPLAYON);
}

Expand Down
2 changes: 1 addition & 1 deletion src/OLEDDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class OLEDDisplay : public Stream {
// normal brightness & contrast: contrast = 100
void setContrast(uint8_t contrast, uint8_t precharge = 241, uint8_t comdetect = 64);

// Convenience method to access
// Convenience method to access setContrast with only brightness parameter
void setBrightness(uint8_t);

// Reset display rotation or mirroring
Expand Down
Loading