Apply suggestions from code review

Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
Marek Schmitt 2025-03-08 17:56:04 +01:00 committed by GitHub
parent a91035ef98
commit ad2eb9aa21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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": {

View File

@ -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;
}