- Fixed final bug regarding key release
- Added LED support calls
- Fixed minor keymapping bug for TAB
- Changed default keymap to Colemak
0, // 0x06
0, // 0x07
KEY_BACKSPACE, // 0x08
0, // 0x06
0, // 0x07
KEY_BACKSPACE, // 0x08
0, // 0x0A
0, // 0x0B
0, // 0x0C
0, // 0x0A
0, // 0x0B
0, // 0x0C
0, // 0x9E
0, // 0x9F
0, // 0xA0
0, // 0x9E
0, // 0x9F
0, // 0xA0
0, // 0xA2
0, // 0xA3
0, // 0xA4
0, // 0xA2
0, // 0xA3
0, // 0xA4
0, // 0x06
0, // 0x07
KEY_BACKSPACE, // 0x08
0, // 0x06
0, // 0x07
KEY_BACKSPACE, // 0x08
0, // 0x0A
0, // 0x0B
0, // 0x0C
0, // 0x0A
0, // 0x0B
0, // 0x0C
0, // 0x9E
0, // 0x9F
0, // 0xA0
0, // 0x9E
0, // 0x9F
0, // 0xA0
0, // 0xA2
0, // 0xA3
0, // 0xA4
0, // 0xA2
0, // 0xA3
0, // 0xA4
+ // TODO Move to Macro Section
+ switch ( keyValue )
+ {
+ case 0xD3: // F11
+ scan_sendData( 0x01 );
+ break;
+ case 0xD4: // F12
+ scan_sendData( 0x02 );
+ break;
+ }
+
// Scan code is now finalized, and ready to add to buffer
// Note: Scan codes come from 3 different interrupts and a manual key scan into this function
// Scan code is now finalized, and ready to add to buffer
// Note: Scan codes come from 3 different interrupts and a manual key scan into this function
// Decrement Buffer
KeyIndex_BufferUsed--;
// Decrement Buffer
KeyIndex_BufferUsed--;
+ // Start at this position again for the next loop
+ c--;
+
// Send data to keyboard
// Sony OA-S3400 has no serial/parallel dataport to send data too...
// Send data to keyboard
// Sony OA-S3400 has no serial/parallel dataport to send data too...
+// Using this function for LED enable/disable
uint8_t scan_sendData( uint8_t dataPayload )
{
uint8_t scan_sendData( uint8_t dataPayload )
{
+ switch ( dataPayload )
+ {
+ case 0x01:
+ LED1_PORT ^= (1 << LED1_POS);
+ break;
+ case 0x02:
+ LED2_PORT ^= (1 << LED2_POS);
+ break;
+ default:
+ erro_print("Invalid data send attempt");
+ break;
+ }
#| Keymap Settings
add_definitions(
-DMODIFIER_MASK=sonyoas3400_ModifierMask
#| Keymap Settings
add_definitions(
-DMODIFIER_MASK=sonyoas3400_ModifierMask
- #-DKEYINDEX_MASK=sonyoas3400_ColemakMap
- -DKEYINDEX_MASK=sonyoas3400_DefaultMap
+ -DKEYINDEX_MASK=sonyoas3400_ColemakMap
+ #-DKEYINDEX_MASK=sonyoas3400_DefaultMap