mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 21:22:05 +00:00
Apply suggestions from code review
Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
parent
a91035ef98
commit
ad2eb9aa21
@ -14,6 +14,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define STM32_FLASH_SECTORS_PER_BANK 128
|
||||
|
||||
#define I2C1_SCL_PIN A9
|
||||
|
@ -103,7 +103,7 @@
|
||||
{"x": 8, "y": 45, "flags": 2},
|
||||
{"x": 8, "y": 17, "flags": 2}
|
||||
],
|
||||
"maximum_brightness": 180
|
||||
"max_brightness": 180
|
||||
},
|
||||
"url": "https://github.com/mawaeg/sharkropad",
|
||||
"usb": {
|
||||
|
@ -75,7 +75,9 @@
|
||||
return buf;
|
||||
}
|
||||
|
||||
bool oled_task_user(void) {
|
||||
bool oled_task_kb(void) {
|
||||
if (!oled_task_user()) { return false; }
|
||||
|
||||
static uint8_t last_effect = 0;
|
||||
static uint8_t last_speed = 0;
|
||||
static uint16_t key_timer = 0;
|
||||
@ -120,6 +122,5 @@
|
||||
oled_write("% ", false);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user