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.
Kaleidoscope/source/Storage.cpp

20 lines
432 B

#include "Storage.h"
Storage_::Storage_(void) {
}
void Storage_::save_primary_keymap(uint8_t keymap) {
EEPROM.write(EEPROM_KEYMAP_LOCATION, keymap);
}
uint8_t Storage_::load_primary_keymap(uint8_t keymap_count) {
uint8_t keymap = EEPROM.read(EEPROM_KEYMAP_LOCATION);
9 years ago
if (keymap >= keymap_count) {
return 0; // undefined positions get saved as 255
}
return 0; // return keymap;
}
Storage_ Storage;