summaryrefslogtreecommitdiffstats
path: root/keyboards/rama/m6_a/config.h
diff options
context:
space:
mode:
authorWilba6582 <Wilba6582@users.noreply.github.com>2018-09-30 17:35:10 +0200
committerJack Humbert <jack.humb@gmail.com>2018-09-30 17:35:10 +0200
commit66ef1e3d6770e388d631d25e4cd1c6b1640cea24 (patch)
treedc0b4eb5b3f2adba1a41c4199871e4a0d341611e /keyboards/rama/m6_a/config.h
parent6734cd9c5c7b63677d3d4cf9bef8ccf878fd3551 (diff)
downloadqmk_firmware-66ef1e3d6770e388d631d25e4cd1c6b1640cea24.tar.gz
qmk_firmware-66ef1e3d6770e388d631d25e4cd1c6b1640cea24.tar.xz
RAMA M6-B and IS31FL3218 driver (#4021)
* Initial RAMA M6-B commit. * Moved IS31FL3218 driver, minor cleanups * Refactor, added dynamic keymap. * Added dynamic keymaps to RAMA M6-A * Refactor M6-A and M6-B to use common code. * Formatting * Cleanup * Cleanup * Changes from review
Diffstat (limited to 'keyboards/rama/m6_a/config.h')
-rw-r--r--keyboards/rama/m6_a/config.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/keyboards/rama/m6_a/config.h b/keyboards/rama/m6_a/config.h
index 0c5355f4a..8d77f5339 100644
--- a/keyboards/rama/m6_a/config.h
+++ b/keyboards/rama/m6_a/config.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef CONFIG_H
-#define CONFIG_H
+#pragma once
#include "config_common.h"
@@ -187,4 +186,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
//#define MIDI_TONE_KEYCODE_OCTAVES 1
-#endif
+#define RGB_BACKLIGHT_ENABLED 0
+
+#define DYNAMIC_KEYMAP_LAYER_COUNT 4
+
+
+// EEPROM usage
+
+// TODO: refactor with new user EEPROM code (coming soon)
+#define EEPROM_MAGIC 0x451F
+#define EEPROM_MAGIC_ADDR 32
+// Bump this every time we change what we store
+// This will automatically reset the EEPROM with defaults
+// and avoid loading invalid data from the EEPROM
+#define EEPROM_VERSION 0x07
+#define EEPROM_VERSION_ADDR 34
+
+// Backlight config starts after EEPROM version
+#define RGB_BACKLIGHT_CONFIG_EEPROM_ADDR 35
+// Dynamic keymap starts after backlight config (35+37)
+#define DYNAMIC_KEYMAP_EEPROM_ADDR 72