geekhack Projects > Making Stuff Together!

TMK SUN-USB Converter

(1/1)

hasu:
TMK SUN-USB Converter

This converter should work with Sun Type 2-5 Keyboards.


Source code is available here.
https://github.com/tmk/tmk_keyboard/tree/master/converter/sun_usb


Keymap Editor:
You can edit keymap and downlaod prebuilt firmware here.

http://www.tmk-kbd.com/tmk_keyboard/editor/#sun_usb


SUN Keyboard Protocol Info:
https://github.com/tmk/tmk_keyboard/wiki/Sun-Keyboard-Protocol


You can order prebuilt converter here:
https://geekhack.org/index.php?topic=72052.0

doomsday_device:
recently acquired a tatung branded sun 5 (?) board, successfully restored and converted it with this firmware.
it has a big beeper and screams everytime i connect. so my guess would be it is working like the other sun keyboards and is potentionally able to output beeps/clicks with each keypress.

to use this feature i would need to use the tmk "magic" key combo, which in this case would be both shift, both alt or both meta keys + a single extra key. it seems the matrix isnt able to do that.

my question here is, is there any way to remap "magic" key combos, or even to map a key to a single hexcode?
beside wiring up converters and putting the *.hex from the online editor on to the chip my knowledge is very limited.

also off topic: if anyone has any infos on the board or the system it came with it would be much appreciated. couldnt find any infos or pictures at all. its a forward fdw-107a

pic of board attached for beauty bonus

disclaimer: this is a crosspost and is also to be found on DT forums.

hasu:
'Keyboard control' command is configured in config.h, you cannot remap in Keymap Editor.
https://github.com/tmk/tmk_keyboard/tree/2173767a78e3353f40b2bc6bb3f29bc67c896470/converter/sun_usb#keyboard-control

You have to edit these lines and compile firmware to change the command.
https://github.com/tmk/tmk_keyboard/blob/2173767a78e3353f40b2bc6bb3f29bc67c896470/converter/sun_usb/config.h#L33-L37

doomsday_device:

--- Quote from: hasu on Thu, 19 May 2022, 18:05:22 ---'Keyboard control' command is configured in config.h, you cannot remap in Keymap Editor.
https://github.com/tmk/tmk_keyboard/tree/2173767a78e3353f40b2bc6bb3f29bc67c896470/converter/sun_usb#keyboard-control

You have to edit these lines and compile firmware to change the command.
https://github.com/tmk/tmk_keyboard/blob/2173767a78e3353f40b2bc6bb3f29bc67c896470/converter/sun_usb/config.h#L33-L37

--- End quote ---
thanks,
remapping combo to two different mods (shift/alt) helped and it works now.

--- Code: ---#define IS_COMMAND() ( \
    keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)) \
)
--- End code ---
thanks to my friend kelvinhall05 for figuring out with me and the compile.

Navigation

[0] Message Index

Go to full version