From 1d8eb6d2e22026ad55b9bf967bd2119db8cc508f Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 16 Nov 2021 12:48:24 -0800 Subject: [PATCH] Temporarily disable gamma implementation - it's not behaving correctly on the model 100 --- .../driver/keyboardio/Model100Side.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/driver/keyboardio/Model100Side.cpp b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/driver/keyboardio/Model100Side.cpp index 11a48eb6..2f278f96 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/driver/keyboardio/Model100Side.cpp +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/driver/keyboardio/Model100Side.cpp @@ -219,7 +219,6 @@ void Model100Side::sendLEDData() { } } -auto constexpr gamma8 = kaleidoscope::driver::color::gamma_correction; void Model100Side::sendLEDBank(byte bank) { uint8_t data[LED_BYTES_PER_BANK + 1]; @@ -235,16 +234,16 @@ void Model100Side::sendLEDBank(byte bank) { else c = 0; - data[i + 1] = pgm_read_byte(&gamma8[c]); + data[i + 1] = c; } uint8_t result = writeData(data, ELEMENTS(data)); } void Model100Side::setAllLEDsTo(cRGB color) { uint8_t data[] = {TWI_CMD_LED_SET_ALL_TO, - pgm_read_byte(&gamma8[color.b]), - pgm_read_byte(&gamma8[color.g]), - pgm_read_byte(&gamma8[color.r]) + color.b, + color.g, + color.r }; uint8_t result = writeData(data, ELEMENTS(data)); } @@ -252,9 +251,9 @@ void Model100Side::setAllLEDsTo(cRGB color) { void Model100Side::setOneLEDTo(byte led, cRGB color) { uint8_t data[] = {TWI_CMD_LED_SET_ONE_TO, led, - pgm_read_byte(&gamma8[color.b]), - pgm_read_byte(&gamma8[color.g]), - pgm_read_byte(&gamma8[color.r]) + color.b, + color.g, + color.r }; uint8_t result = writeData(data, ELEMENTS(data));