qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
18.17k stars 39.15k forks source link

DZ60 possible layout question #16938

Closed chiboreache closed 1 year ago

chiboreache commented 2 years ago

one button doesn't work, tested via xev

GOPR3892_

does it even support that way? or maybe it's just me and my soldering skills

image https://github.com/qmk/qmk_firmware/tree/master/keyboards/dz60

HorrorTroll commented 2 years ago

It does support, but for some reason maker didn't make layout for that one.

chiboreache commented 2 years ago

np, i made my own, but it's not working heh πŸ˜…

2022-04-25x12:08:24

HorrorTroll commented 2 years ago

U should modify dz60.h files too. Try replace this image

To this:

// ζ ‡ε‡†ι…εˆ—
/* Standard arrangement / LAYOUT
 * β”Œβ”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”
 * β”‚00 β”‚01 β”‚02 β”‚03 β”‚04 β”‚05 β”‚06 β”‚07 β”‚08 β”‚09 β”‚0a β”‚0b β”‚0c β”‚0d β”‚0e β”‚
 * β”œβ”€β”€β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”¬β”€β”΄β”€β”€β”€β”€
 * β”‚10   β”‚12 β”‚13 β”‚14 β”‚15 β”‚16 β”‚17 β”‚18 β”‚19 β”‚1a β”‚1b β”‚1c β”‚1d β”‚1e   β”‚
 * β”œβ”€β”€β”€β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”€β”€β”€β”€β”€β”€
 * β”‚20    β”‚22 β”‚23 β”‚24 β”‚25 β”‚26 β”‚27 β”‚28 β”‚29 β”‚2a β”‚2b β”‚2c β”‚2d      β”‚
 * β”œβ”€β”€β”€β”€β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”΄β”¬β”€β”€β”€β”¬β”€β”€β”€β”€
 * β”‚30     β”‚32 β”‚33 β”‚34 β”‚35 β”‚36 β”‚37 β”‚38 β”‚39 β”‚3a β”‚3b β”‚3c β”‚3d β”‚3e β”‚
 * β”œβ”€β”€β”€β”€β”¬β”€β”€β”΄β”€β”¬β”€β”΄β”€β”€β”¬β”΄β”€β”€β”€β”΄β”€β”€β”€β”Όβ”€β”€β”€β”΄β”¬β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”€β”Όβ”€β”€β”€β”Όβ”€β”€β”€β”Όβ”€β”€β”€β”Όβ”€β”€β”€β”Όβ”€β”€β”€β”€
 * β”‚40  β”‚41  β”‚43  β”‚44      β”‚46  β”‚48        β”‚4a β”‚4b β”‚4c β”‚4d β”‚4e β”‚
 * β””β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”€β”΄β”€β”€β”€β”˜
*/
#define LAYOUT( \
    k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \
    k10,      k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e, \
    k20,      k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d,      \
    k30,      k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, \
    k40, k41,      k43, k44,      k46,      k48,      k4a, k4b, k4c, k4d, k4e  \
) { \
    { k00,  k01,   k02,   k03,  k04,  k05,   k06,  k07,   k08,  k09,   k0a,  k0b,  k0c,   k0d,  k0e   }, \
    { k10,  KC_NO, k12,   k13,  k14,  k15,   k16,  k17,   k18,  k19,   k1a,  k1b,  k1c,   k1d,  k1e   }, \
    { k20,  KC_NO, k22,   k23,  k24,  k25,   k26,  k27,   k28,  k29,   k2a,  k2b,  k2c,   k2d,  KC_NO }, \
    { k30,  KC_NO, k32,   k33,  k34,  k35,   k36,  k37,   k38,  k39,   k3a,  k3b,  k3c,   k3d,  k3e   }, \
    { k40,  k41,   KC_NO, k43,  k44,  KC_NO, k46,  KC_NO, k48,  KC_NO, k4a,  k4b,  k4c,   k4d,  k4e   }  \
}
chiboreache commented 2 years ago

lol, got it!

chiboreache commented 2 years ago

after replacing redundant _______, for actual kc everything worked like a charm - thank you @HorrorTroll !!

i lived more than two years without one button.., what a shame..., but whatever =^-^=

chiboreache commented 2 years ago

and now qmk compile / qmk flash also just works perfect!

back then i have to use sudo dfu-programmer atmega32u4 erase --force && sudo dfu-programmer atmega32u4 flash dz60_chiboreache.hex && sudo dfu-programmer atmega32u4 reset 😬

HorrorTroll commented 2 years ago

glad it work πŸ‘

chiboreache commented 1 year ago

@HorrorTroll

plz update default template

➜  chiboreache git:(master) βœ— qmk compile -kb dz60 -km chiboreache
Ξ¨ Compiling keymap with make --jobs=1 dz60:chiboreache

QMK Firmware 0.19.11
Making dz60 with keymap chiboreache

avr-gcc (GCC) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiling: keyboards/dz60/dz60.c                                                                    [OK]
Compiling: .build/obj_dz60/src/default_keyboard.c                                                   [OK]
Compiling: quantum/keymap_introspection.c                                                          In file included from ./.build/obj_dz60/src/default_keyboard.h:30,
                 from ./keyboards/dz60/keymaps/chiboreache/keymap.c:1,
                 from quantum/keymap_introspection.c:5:
./keyboards/dz60/keymaps/chiboreache/keymap.c:143:145: error: 'RESET' undeclared here (not in a function)
  143 |         _______        , KC_F1  , KC_F2  , KC_F3  , KC_F4  , KC_F5   , KC_F6  , KC_F7  , KC_F8  , KC_F9  , KC_F10  , KC_F11 , KC_F12 , _______, RESET,
      |                                                                                                                                                 ^~~~~
keyboards/dz60/dz60.h:28:97: note: in definition of macro 'LAYOUT'
   28 |     { k00,  k01,   k02,   k03,  k04,  k05,   k06,  k07,   k08,  k09,   k0a,  k0b,  k0c,   k0d,  k0e   }, \
      |                                                                                                 ^~~
 [ERRORS]
 | 
 | 
 | 
make[1]: *** [builddefs/common_rules.mk:360: .build/obj_dz60_chiboreache/quantum/keymap_introspection.o] Error 1
Make finished with errors
make: *** [Makefile:414: dz60:chiboreache] Error 1
HorrorTroll commented 1 year ago

just change RESET to QK_BOOT

chiboreache commented 1 year ago

@HorrorTroll

./keyboards/dz60/keymaps/chiboreache/config.h:1:32: error: unsigned conversion from 'int' to 'unsigned char' changes value from '31795' to '51' [-Werror=overflow]
    1 | #define UNICODE_SELECTED_MODES UC_LINX
      |                                ^~~~~~~
quantum/unicode/unicode.c:69:34: note: in expansion of macro 'UNICODE_SELECTED_MODES'
   69 | static uint8_t selected[]     = {UNICODE_SELECTED_MODES};
      |                                  ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
 [ERRORS]

so much new stuff ~_~

chiboreache commented 1 year ago

#define UNICODE_SELECTED_MODES UNICODE_MODE_LINUX

chiboreache commented 1 year ago

haven't uploaded it yet, hope it works as expectedπŸ˜…

chiboreache commented 1 year ago

nah, it shifts z-row again

and we are start from the beginning

chiboreache commented 1 year ago

LAYOUT -> LAYOUT_directional do the jobπŸ‘Œ

2023-02-06x05:58:38

2023-02-06x06:02:13