Apple2 u/l keyboard has CAPS by default.

Start LED off, and turn on by activating CAPS
This commit is contained in:
Dave 2021-12-04 23:48:24 -06:00
parent 7ce550257c
commit 68086cde31
2 changed files with 3 additions and 4 deletions

View File

@ -63,9 +63,6 @@ void setup_apple2_keymap(void)
asdf_hook_assign(APPLESOFT_KEYBOARD_TEST, applesoft_keyboard_test);
asdf_hook_assign(APPLE2_ID_MESSAGE, apple2_id_message);
asdf_virtual_init();
// Attach the physical POWER LED as the CAPS LED. Assign no triggered
// function, and initialize to initial state of the CAPS logic. The CAPS LED
// will be controlled by the state of the CAPSLOCK logic.
@ -80,6 +77,8 @@ void setup_apple2_keymap(void)
// assign the CLRSCR output to the virtual CLRSCR output, configure to produce a long pulse when activated
asdf_virtual_assign(APPLE_VIRTUAL_CLR_SCR, APPLE_CLR_SCR_OUTPUT, V_PULSE_LONG, !APPLE_CLR_SCR_ACTIVE_VALUE);
asdf_modifier_capslock_activate(); // For Apple 2, start with CAPS active
}

View File

@ -49,7 +49,7 @@
#define APPLE_VIRTUAL_POWER_LED VLED1
#define APPLE_POWER_LED PHYSICAL_LED1
#define APPLE_POWER_LED_INIT_VALUE 1
#define APPLE_POWER_LED_INIT_VALUE 0 // Toggles when caps lock is activated
#define APPLE_VIRTUAL_DISABLED_LED VLED2
#define APPLE_DISABLED_LED PHYSICAL_LED3