Model F AT 'ANSI' Conversion question

anmq91

20 Dec 2019, 13:36

Hey guys,

So I just ordered up some keycaps from Unicomp to give my Model F AT an ANSI Mod (Without changing the spacebar). I just want to have the normal 2u backspace, 1.5u '|\' and the ANSI 2u enter. I am using the keyboard over an Orihalcon cable with soarers converter.

I just realized though that I will need to reprogram the controller to correctly read the key presses when the new keys/flippers are in place. Just wanted to ask if I am correct in thinking this, and wondering if anybody could help me out with the coding. I have never coded in my life before, so not even sure where to start!

Any help would be highly appreciated :)

User avatar
fohat
Elder Messenger

20 Dec 2019, 13:47

Soarer's original thread has a full set of documents in the original post, but Orihalcon will probably be happy to tell you how to set up one of his cables is you ask him directly.

User avatar
Quartz64

20 Dec 2019, 14:32

Use hid_listen to determine the scancodes, then look for them in 'Modified HID Code' table (codes.html, Soarer's Converter docs).
Exampe. To map those two additional pads under the spacebar to left and right Alts you need the following remaps:

Code: Select all

EXTRA_LALT         LALT
EXTRA_RALT         RALT

anmq91

21 Dec 2019, 12:47

Thanks for the help guys, I will get on it as soon as the keys arrive :)

User avatar
dcopellino

21 Dec 2019, 15:49

15769394132271881991622781032803.jpg
15769394132271881991622781032803.jpg (4.46 MiB) Viewed 2330 times
I preferred changing the space bar, though, giving my f at a more resembling F122 look. The genuine space-bar had a so big ass old fashion appearance...
Go on, It will be very easy to finalize your project as I did not long ago. I used the following code to set Soarer's firmware up and running. Good luck

Code: Select all

# AJM's AT layout (with some mods by Daco)


remapblock
FAKE_02	LALT	# extra pad lhs of space
FAKE_04	RALT	# extra pad rhs of space
FAKE_05	EUROPE_1	# extra pad lhs of enter
FAKE_06	BACKSLASH	# extra pad top of enter
FAKE_07	F11	# extra pad lhs of insert
LALT	LCTRL
INTERNATIONAL_2	EUROPE_2	# extra pad rhs of left shift
#INTERNATIONAL_1	F13	# extra pad lhs of right shift
F11	F14	# extra pad bottom of numpad +
BACK_QUOTE	ESC
PAD_ASTERIX	PAD_MINUS	
PAD_MINUS	PAD_PLUS
SCROLL_LOCK	PAD_SLASH
EXTRA_SYSRQ	PAD_ASTERIX
ESC	DELETE	
	
CAPS_LOCK	RCTRL
LCTRL	CAPS_LOCK
EXTRA_EUROPE_2	BACKSLASH # HASH KEY Next to enter
PAD_PLUS	PAD_ENTER
EXTRA_RALT	RALT
endblock

macroblock

  macro 1 CTRL -SHIFT -ALT -GUI
    PUSH_META CLEAR_META all
    DELAY 5
    PRESS MEDIA_MUTE
    POP_ALL_META
  endmacro

  macro 2 CTRL -SHIFT -ALT -GUI
    PUSH_META CLEAR_META all
    DELAY 5
    MAKE MEDIA_VOLUME_DOWN
   onbreak
    BREAK MEDIA_VOLUME_DOWN
    POP_ALL_META
  endmacro

  macro 3 CTRL -SHIFT -ALT -GUI
    PUSH_META CLEAR_META all
    DELAY 5
    MAKE MEDIA_VOLUME_UP
   onbreak
    BREAK MEDIA_VOLUME_UP
    POP_ALL_META
  endmacro

  macro 4 CTRL -SHIFT -ALT -GUI
    PUSH_META CLEAR_META all
    DELAY 5
    PRESS MEDIA_PLAY_PAUSE
    POP_ALL_META
  endmacro

  macro F9 CTRL
    PUSH_META CLEAR_META CTRL
    DELAY 5
    PRESS F11
    POP_ALL_META
  endmacro

  macro F10 CTRL
    PUSH_META CLEAR_META CTRL
    DELAY 5
    PRESS F12
    POP_ALL_META
  endmacro

  macro ESC LSHIFT
    MAKE BACK_QUOTE
   onbreak
    BREAK BACK_QUOTE
  endmacro

  macro ESC CTRL
    PUSH_META CLEAR_META CTRL
    DELAY 5
    MAKE BACK_QUOTE
   onbreak
    BREAK BACK_QUOTE
    POP_ALL_META
  endmacro

  macro ESC RSHIFT
    PUSH_META CLEAR_META RSHIFT
    SET_META RALT
    DELAY 5
    MAKE BACK_QUOTE
   onbreak
    BREAK BACK_QUOTE
    POP_ALL_META
  endmacro

endblock

anmq91

21 Dec 2019, 16:00

dcopellino wrote: 21 Dec 2019, 15:49 15769394132271881991622781032803.jpg
I preferred changing the space bar, though, giving my f at a more resembling F122 look. The genuine space-bar had a so big ass old fashion appearance...
Go on, It will be very easy to finalize your project as I did not long ago. I used the following code to set Soarer's firmware up and running. Good luck

Code: Select all

# AJM's AT layout (with some mods by Daco)


remapblock
FAKE_02	LALT	# extra pad lhs of space
FAKE_04	RALT	# extra pad rhs of space
FAKE_05	EUROPE_1	# extra pad lhs of enter
FAKE_06	BACKSLASH	# extra pad top of enter
FAKE_07	F11	# extra pad lhs of insert
LALT	LCTRL
INTERNATIONAL_2	EUROPE_2	# extra pad rhs of left shift
#INTERNATIONAL_1	F13	# extra pad lhs of right shift
F11	F14	# extra pad bottom of numpad +
BACK_QUOTE	ESC
PAD_ASTERIX	PAD_MINUS	
PAD_MINUS	PAD_PLUS
SCROLL_LOCK	PAD_SLASH
EXTRA_SYSRQ	PAD_ASTERIX
ESC	DELETE	
	
CAPS_LOCK	RCTRL
LCTRL	CAPS_LOCK
EXTRA_EUROPE_2	BACKSLASH # HASH KEY Next to enter
PAD_PLUS	PAD_ENTER
EXTRA_RALT	RALT
endblock

macroblock

  macro 1 CTRL -SHIFT -ALT -GUI
    PUSH_META CLEAR_META all
    DELAY 5
    PRESS MEDIA_MUTE
    POP_ALL_META
  endmacro

  macro 2 CTRL -SHIFT -ALT -GUI
    PUSH_META CLEAR_META all
    DELAY 5
    MAKE MEDIA_VOLUME_DOWN
   onbreak
    BREAK MEDIA_VOLUME_DOWN
    POP_ALL_META
  endmacro

  macro 3 CTRL -SHIFT -ALT -GUI
    PUSH_META CLEAR_META all
    DELAY 5
    MAKE MEDIA_VOLUME_UP
   onbreak
    BREAK MEDIA_VOLUME_UP
    POP_ALL_META
  endmacro

  macro 4 CTRL -SHIFT -ALT -GUI
    PUSH_META CLEAR_META all
    DELAY 5
    PRESS MEDIA_PLAY_PAUSE
    POP_ALL_META
  endmacro

  macro F9 CTRL
    PUSH_META CLEAR_META CTRL
    DELAY 5
    PRESS F11
    POP_ALL_META
  endmacro

  macro F10 CTRL
    PUSH_META CLEAR_META CTRL
    DELAY 5
    PRESS F12
    POP_ALL_META
  endmacro

  macro ESC LSHIFT
    MAKE BACK_QUOTE
   onbreak
    BREAK BACK_QUOTE
  endmacro

  macro ESC CTRL
    PUSH_META CLEAR_META CTRL
    DELAY 5
    MAKE BACK_QUOTE
   onbreak
    BREAK BACK_QUOTE
    POP_ALL_META
  endmacro

  macro ESC RSHIFT
    PUSH_META CLEAR_META RSHIFT
    SET_META RALT
    DELAY 5
    MAKE BACK_QUOTE
   onbreak
    BREAK BACK_QUOTE
    POP_ALL_META
  endmacro

endblock

Your board looks awesome! I love the mix of caps and the alternative design in the F cluster :mrgreen:
Thank you so much for sharing your code, it gives me an awesome starting point to get to work on. Would also help me set up my macros. I've got my work cut out for me over Christmas! :)

Post Reply

Return to “Keyboards”