Merge pull request #2 from keyboardio/f/no-eeprom

Drop the layer save/load methods
pull/365/head
Jesse Vincent 8 years ago committed by GitHub
commit bb18b8e9b5

@ -1,8 +1,5 @@
#include <Kaleidoscope.h>
#include <avr/wdt.h>
#include <EEPROM.h>
#define EEPROM_LAYER_LOCATION 0
KeyboardioScanner Model01::leftHand(0);
KeyboardioScanner Model01::rightHand(3);
@ -186,16 +183,4 @@ void Model01::reboot_bootloader() {
// happens before the watchdog reboots us
}
void Model01::save_primary_layer(uint8_t layer) {
EEPROM.write(EEPROM_LAYER_LOCATION, layer);
}
uint8_t Model01::load_primary_layer(uint8_t layer_count) {
uint8_t layer = EEPROM.read(EEPROM_LAYER_LOCATION);
if (layer >= layer_count) {
return 0; // undefined positions get saved as 255
}
return 0; // return keymap;
}
HARDWARE_IMPLEMENTATION KeyboardHardware;

@ -29,9 +29,6 @@ class Model01 {
boolean led_power_fault(void);
uint8_t load_primary_layer(uint8_t layer_count);
void save_primary_layer(uint8_t layer);
keydata_t leftHandState;
keydata_t rightHandState;
keydata_t previousLeftHandState;

Loading…
Cancel
Save