You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
330 B
15 lines
330 B
#include "storage.h"
|
|
|
|
void save_primary_keymap(byte keymap) {
|
|
EEPROM.write(EEPROM_KEYMAP_LOCATION, keymap);
|
|
}
|
|
|
|
byte load_primary_keymap() {
|
|
byte keymap = EEPROM.read(EEPROM_KEYMAP_LOCATION);
|
|
if (keymap >= KEYMAPS ) {
|
|
return 0; // undefined positions get saved as 255
|
|
}
|
|
return 0; // return keymap;
|
|
}
|
|
|