1
0
Fork 0

Fix OLED timeout on satisfaction75 after migration from QWIIC (#14780)

The custom OLED_OFF mode implemented on satisfaction75 is incompatible
with the OLED_TIMEOUT feature (the OLED_TIMEOUT code assumes that any
key or encoder action should turn the OLED display on, and does not
provide any way to disable that behavior).  To keep the OLED_OFF mode
functioning as before while still having a working OLED idle timeout, a
custom implementation of the OLED idle timeout code is added.
This commit is contained in:
Sergey Vlasov 2021-10-10 19:01:29 +03:00 committed by GitHub
parent 0ea72af8b7
commit 2d3bd7cfcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 87 additions and 8 deletions

View file

@ -74,6 +74,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// configure oled driver for the 128x32 oled
#define OLED_UPDATE_INTERVAL 66 // ~15fps
// OLED_TIMEOUT is incompatible with the OLED_OFF mode
#define OLED_TIMEOUT 0
// OLED timeout reimplemented in the keyboard-specific code
#define CUSTOM_OLED_TIMEOUT 60000
// Custom config starts after VIA's EEPROM usage,
// dynamic keymaps start after this.
// Custom config Usage: