Hi there,
Been trying to expand my SpaceCadet install to include {} and [], and it is not working as per the documentation. I added:
//Set the keymap with a 250ms timeout per-key
//Setting is {KeyThatWasPressed, AlternativeKeyToSend, TimeoutInMS}
//Note: must end with the SPACECADET_MAP_END delimiter
static kaleidoscope::SpaceCadet::KeyBinding spacecadetmap[] = {
{Key_LeftShift, Key_LeftParen, 250}
, {Key_RightShift, Key_RightParen, 250}
, {Key_LeftGui, Key_LeftCurlyBracket, 250}
, {Key_RightAlt, Key_RightCurlyBracket, 250}
, {Key_LeftAlt, Key_RightCurlyBracket, 250}
, {Key_LeftControl, Key_LeftBracket, 250}
, {Key_RightControl, Key_RightBracket, 250}
, SPACECADET_MAP_END
};
//Set the map.
SpaceCadet.map = spacecadetmap;
to my void setup()
but I get the following error when building:
/Users/rami/Documents/Arduino/Model01-Firmware/Model01-Firmware.ino: In function 'void setup()':
Model01-Firmware:580:24: error: 'SpaceCadet' in namespace 'kaleidoscope' does not name a type
static kaleidoscope::SpaceCadet::KeyBinding spacecadetmap[] = {
^
Model01-Firmware:591:20: error: 'spacecadetmap' was not declared in this scope
SpaceCadet.map = spacecadetmap;
^
exit status 1
'SpaceCadet' in namespace 'kaleidoscope' does not name a type
Any help would be appreciated.