From e879367e70db5ff3f0272583db585a80fd37f94a Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Tue, 6 Feb 2024 21:42:37 +0200 Subject: [PATCH 1/8] Create theC64-sym-CLASSIC.vkm --- C64_keyboard/theC64-sym-CLASSIC.vkm | 145 ++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 C64_keyboard/theC64-sym-CLASSIC.vkm diff --git a/C64_keyboard/theC64-sym-CLASSIC.vkm b/C64_keyboard/theC64-sym-CLASSIC.vkm new file mode 100644 index 0000000..3b4c73f --- /dev/null +++ b/C64_keyboard/theC64-sym-CLASSIC.vkm @@ -0,0 +1,145 @@ +# C64 mode, edited for BMC64 keyboard by McGurk + +!CLEAR +!LSHIFT 1 7 +!RSHIFT 6 4 +!VSHIFT RSHIFT +!SHIFTL LSHIFT + +# Regular codes +41 7 1 8 /* <- */ +2 7 0 8 /* 1 */ +3 7 3 8 /* 2 */ +4 1 0 8 /* 3 */ +5 1 3 8 /* 4 */ +6 2 0 8 /* 5 */ +7 2 3 8 /* 6 */ +8 3 0 8 /* 7 */ +9 3 3 8 /* 8 */ +10 4 0 8 /* 9 */ +11 4 3 8 /* 0 */ +#78 5 0 8 /* + */ +#74 5 3 8 /* - */ +#12 6 0 8 /* £ */ +12 5 0 8 /* + */ +13 5 3 8 /* - */ +110 6 0 8 /* £ */ +102 6 3 8 /* CLR/HOME */ +14 0 0 8 /* INST/DEL */ + +29 7 5 8 /* (CTRL 29 7 2 8) Control_L -> CMD */ +56 7 5 8 /* (-) Alt_L -> CMD */ +16 7 6 8 /* Q */ +17 1 1 8 /* W */ +18 1 6 8 /* E */ +19 2 1 8 /* R */ +20 2 6 8 /* T */ +21 3 1 8 /* Y */ +22 3 6 8 /* U */ +23 4 1 8 /* I */ +24 4 6 8 /* O */ +25 5 1 8 /* P */ +#43 5 6 8 /* @ */ +#39 6 1 8 /* * */ +#40 6 6 8 /* ^ */ +26 5 6 8 /* @ */ +27 6 1 8 /* * */ +111 6 6 8 /* ^ */ +15 7 2 8 /* (15 -3 0 RESTORE) Tab -> CTRL */ +104 -3 0 /* (-) PageUp -> (RESTORE) */ + +1 7 7 8 /* RUN/STOP */ +30 1 2 8 /* A */ +31 1 5 8 /* S */ +32 2 2 8 /* D */ +33 2 5 8 /* F */ +34 3 2 8 /* G */ +35 3 5 8 /* H */ +36 4 2 8 /* J */ +37 4 5 8 /* K */ +38 5 2 8 /* L */ +#26 5 5 8 /* : */ +#27 6 2 8 /* ; */ +#13 6 5 8 /* = */ +39 5 5 8 /* : */ +40 6 2 8 /* ; */ +43 6 5 8 /* = */ +28 0 1 8 /* RETURN */ + +125 7 5 8 /* THEC64 */ +42 1 7 2 /* SHIFT (left) */ +44 1 4 8 /* Z */ +45 2 7 8 /* X */ +46 2 4 8 /* C */ +47 3 7 8 /* V */ +48 3 4 8 /* B */ +49 4 7 8 /* N */ +50 4 4 8 /* M */ +51 5 7 8 /* , */ +52 5 4 8 /* . */ +53 6 7 8 /* / */ +54 6 4 4 /* SHIFT (right) */ +108 0 7 8 /* CRSR vert */ +106 0 2 8 /* CRSR horiz */ + +57 7 4 8 /* (space) */ + +59 0 4 8 /* F1 */ +61 0 5 8 /* F3 */ +63 0 6 8 /* F5 */ +65 0 3 8 /* F7 */ + +# Special codes for joystick buttons and virtual keyboard +150 6 0 8 /* £ */ +151 7 6 8 /* Q */ +152 1 1 8 /* W */ +153 3 1 8 /* Y */ +154 5 6 8 /* @ */ +155 6 6 8 /* ^ */ +156 1 2 8 /* A */ +157 5 5 8 /* : */ +158 6 2 8 /* ; */ +159 1 4 8 /* Z */ +160 4 4 8 /* M */ +161 7 0 1 /* ! */ +162 7 3 1 /* " */ +163 1 0 1 /* # */ +164 1 3 1 /* $ */ +165 2 0 1 /* % */ +166 2 3 1 /* & */ +167 3 0 1 /* ' */ +168 3 3 1 /* ( */ +169 4 0 1 /* ) */ +170 5 5 1 /* [ */ +171 6 2 1 /* ] */ +172 5 7 1 /* < */ +173 5 4 1 /* > */ +174 6 7 1 /* ? */ +175 6 6 1 /* Pi */ + +55 6 1 8 /* * */ +83 5 4 8 /* . */ +121 5 7 8 /* , */ +98 6 7 8 /* / */ +117 6 5 8 /* = */ +82 4 3 8 /* 0 */ +79 7 0 8 /* 1 */ +80 7 3 8 /* 2 */ +81 1 0 8 /* 3 */ +75 1 3 8 /* 4 */ +76 2 0 8 /* 5 */ +77 2 3 8 /* 6 */ +71 3 0 8 /* 7 */ +72 3 3 8 /* 8 */ +73 4 0 8 /* 9 */ + +60 0 4 1 /* F2 */ +62 0 5 1 /* F4 */ +64 0 6 1 /* F6 */ +66 0 3 1 /* F8 */ + +103 0 7 1 /* up */ +105 0 2 1 /* left */ + +#110 0 0 1 /* insert */ +#111 0 0 8 /* delete */ From fffc9272c47bc34484f724a16b98a1a147801f66 Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Tue, 6 Feb 2024 22:14:00 +0200 Subject: [PATCH 2/8] Update README.md --- C64_keyboard/README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/C64_keyboard/README.md b/C64_keyboard/README.md index 2d7a92b..8c72d8e 100644 --- a/C64_keyboard/README.md +++ b/C64_keyboard/README.md @@ -81,7 +81,26 @@ macroblock endblock ``` -## Issues (all issues are fixed in newer BMC64 versions) +## TheC64 Maxi Orange Pi PC +Buttons that needs modification: +``` ++ 12 +- 13 +@ 26 +* 27 +^ 111 +: 39 +; 40 += 43 +£ 110 +C= 29 +CTRL 15 +RESTORE 104 +INS/DEL 14 +``` +It goes to /usr/lib/vice/C64/theC64-sym-CLASSIC.vkm in ext4 partition of firmware-image. (THEC64_for_OPI.img or THE_VIC_20_for_OPI.img) + +## OBSOLETE: Issues (all issues are fixed in newer BMC64 versions) ### Issue with Menu key (fixed in newer BMC64 versions) - .crt-files doesn't work with C= + F7, so as workaround LSHIFT + F7 is F12. From e2003e21d2021a435f7e6045886915fa8e8c743b Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Tue, 6 Feb 2024 22:14:29 +0200 Subject: [PATCH 3/8] Update README.md --- C64_keyboard/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C64_keyboard/README.md b/C64_keyboard/README.md index 8c72d8e..47ae30b 100644 --- a/C64_keyboard/README.md +++ b/C64_keyboard/README.md @@ -98,7 +98,7 @@ CTRL 15 RESTORE 104 INS/DEL 14 ``` -It goes to /usr/lib/vice/C64/theC64-sym-CLASSIC.vkm in ext4 partition of firmware-image. (THEC64_for_OPI.img or THE_VIC_20_for_OPI.img) +Copy theC64-sym-CLASSIC.vkm to /usr/lib/vice/C64/theC64-sym-CLASSIC.vkm in ext4 partition of firmware-image. (THEC64_for_OPI.img or THE_VIC_20_for_OPI.img) ## OBSOLETE: Issues (all issues are fixed in newer BMC64 versions) From 56d427c59a24253842f2a4d58067a9289fbc9c79 Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Fri, 9 Feb 2024 14:55:45 +0200 Subject: [PATCH 4/8] Rename C64_4joy_adapter/interrupt_test.ino to C64_4joy_adapter/old/interrupt_test.ino --- C64_4joy_adapter/{ => old}/interrupt_test.ino | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename C64_4joy_adapter/{ => old}/interrupt_test.ino (100%) diff --git a/C64_4joy_adapter/interrupt_test.ino b/C64_4joy_adapter/old/interrupt_test.ino similarity index 100% rename from C64_4joy_adapter/interrupt_test.ino rename to C64_4joy_adapter/old/interrupt_test.ino From e0f49d4d8f8988e44445ac032c39b99c91969b5a Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Fri, 9 Feb 2024 14:56:00 +0200 Subject: [PATCH 5/8] Rename C64_4joy_adapter/old3.txt to C64_4joy_adapter/old/old3.txt --- C64_4joy_adapter/{ => old}/old3.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename C64_4joy_adapter/{ => old}/old3.txt (100%) diff --git a/C64_4joy_adapter/old3.txt b/C64_4joy_adapter/old/old3.txt similarity index 100% rename from C64_4joy_adapter/old3.txt rename to C64_4joy_adapter/old/old3.txt From 271fb7417848c91ac2c6e8f5b6d776960eda00ab Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Fri, 9 Feb 2024 14:56:13 +0200 Subject: [PATCH 6/8] Rename C64_4joy_adapter/stuff.ino to C64_4joy_adapter/old/stuff.ino --- C64_4joy_adapter/{ => old}/stuff.ino | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename C64_4joy_adapter/{ => old}/stuff.ino (100%) diff --git a/C64_4joy_adapter/stuff.ino b/C64_4joy_adapter/old/stuff.ino similarity index 100% rename from C64_4joy_adapter/stuff.ino rename to C64_4joy_adapter/old/stuff.ino From df931490dd33bf5836e74ae9adcb50871b3ce03f Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Fri, 9 Feb 2024 14:56:23 +0200 Subject: [PATCH 7/8] Rename C64_4joy_adapter/temp.ino to C64_4joy_adapter/old/temp.ino --- C64_4joy_adapter/{ => old}/temp.ino | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename C64_4joy_adapter/{ => old}/temp.ino (100%) diff --git a/C64_4joy_adapter/temp.ino b/C64_4joy_adapter/old/temp.ino similarity index 100% rename from C64_4joy_adapter/temp.ino rename to C64_4joy_adapter/old/temp.ino From 1a10fc00ab99845d5695288ee6834a16ed603e6c Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Tue, 13 Feb 2024 20:36:23 +0200 Subject: [PATCH 8/8] Update C64_matrix.sc --- C64_keyboard/C64_matrix.sc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/C64_keyboard/C64_matrix.sc b/C64_keyboard/C64_matrix.sc index b0068ee..c55b9ad 100644 --- a/C64_keyboard/C64_matrix.sc +++ b/C64_keyboard/C64_matrix.sc @@ -37,10 +37,12 @@ end # colon (:) = SEMICOLON # semicolon (;) = QUOTE -# macroblock -# macro F7 LSHIFT # LSHIFT + F7 = F12 -# PRESS F12 -# CLEAR_ALL -# endmacro -# endblock +# circumvent TheC64 LSHIFT-LEFTARROW Menu-problem +macroblock + macro BACK_QUOTE LSHIFT + CLEAR_META LSHIFT + DELAY 100 + PRESS PAD_PERIOD + endmacro +endblock