Outils pour utilisateurs

Outils du site


ergodox

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
ergodox [2019/04/10 18:59] – [Configurer le layout] simonergodox [2021/02/08 21:31] (Version actuelle) – [Envoyer la configuration sur le clavier] simon
Ligne 1: Ligne 1:
 ====== Ergodox ====== ====== Ergodox ======
 +{{tag>clavier ergodox}}
 +
 +===== Introduction =====
 +
 +Ça fait longtemps que j'ai le projet de me fabriquer et d'apprendre à utiliser un clavier mécanique. Après avoir regardé longuement, bavé sur des modèles comme le [[https://marcyoung.us/post/pterodactyl/|Pterodactyl]], ou d'autres claviers particuliers comme le [[https://www.velocifiretech.com/product/dumang-dk6-ergo-v2/|DUMANG DK6]] ([[https://hackers.town/@zpojqwfejwfhiunz/103573273574733970|pouet mastodon]]), j'ai choisi de m'orienter vers un [[https://www.ergodox.io/|Ergodox]].
 +
 +Après avoir rêvé de tout reprendre de A à Z, de fabriquer le boitier en fibre de carbone et redessiner la carte électronique, je me suis avoué vaincu par le temps. J'ai commandé un kit chez [[https://falba.tech/customize-your-keyboard/customize-your-ergodox/?v=d3dcf429c679|falba.tech]].
 +
 {{ :img_20190207_232329.jpg?400 |}} {{ :img_20190207_232329.jpg?400 |}}
-(D'autres photos : [[https://simonlefort.be/images/?dir=keyboard|Galerie]])+(D'autres photos : [[https://images.simonlefort.be/?dir=Keyboard|Galerie]])
  
-===== Flasher le firmware ===== +===== Programmer le clavier =====
-J'ai tout d'abord essayé avec le firmware "tmk" mais je n'ai jamais réussi à avoir quelque chose de fonctionnel. Le firmware est apparemment envoyé sur le clavier mais pas une touche ne marche. +
  
-Pour mémoire: +==== Installation de QMK ==== 
-<hidden>+ 
 +Après avoir testé le [[https://github.com/tmk/tmk_keyboard|firmware TMK (github)]] sans succès, je suis passé à [[https://qmk.fm/|QMK (site)]]. Pour l'installation, j'ai suivi la [[https://docs.qmk.fm/#/|documentation de QMK]]. Installation avec pip3 
 <code bash> <code bash>
-simon@deb:~/Programmesgit clone https://github.com/cub-uanic/tmk_keyboard.git+python3 -m pip install --user qmk
 </code> </code>
-<hidden>+ 
 +J'ai copié [[https://github.com/qmk/qmk_firmware/blob/master/util/udev/50-qmk.rules|ce fichier]] pour les règles [[informatique:udev]] : 
 <code bash> <code bash>
-Clonage dans 'tmk_keyboard'... +$ sudo vim /etc/udev/rules.d/50-qmk.rules 
-remote: Enumerating objects: 1, done. +$ sudo udevadm control --reload-rules 
-remote: Counting objects: 100% (1/1), done+$ sudo udevadm trigger
-remote: Total 17079 (delta 0), reused 0 (delta 0), pack-reused 17078 +
-Réception d'objets: 100% (17079/17079), 22.31 MiB | 3.12 MiB/s, fait. +
-Résolution des deltas: 100% (10038/10038), fait.+
 </code> </code>
-</hidden>+ 
 +J'ai fait la configuration comme indiqué : 
 <code bash> <code bash>
-simon@deb:~/Programmescd tmk_keyboard/keyboard/ergodox/ +qmk setup
-simon@deb:~/Programmes/tmk_keyboard/keyboard/ergodox$ make -f Makefile.lufa clean+
 </code> </code>
-<hidden> +Il installe toutes les dépendances, vérifie les règles udev, demande où il peut s'installer par défaut, etc.. (Il reste quelques erreurs relatives à udev mais elles concernent d'autres types de clavier et ne semblent pas poser de problèmes pour la suite.)
-<code bash> +
-simon@deb:~/Programmes/tmk_keyboard/keyboard/ergodox$ make -f Makefile.lufa+
  
--------- begin -------- +==== Créer une "keymap" ====
-avr-gcc (GCC) 5.4.0 +
-Copyright (C) 2015 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.+
  
-(...)+J'ai créé une nouvelle keymap dans le dossier de l'ergodox_ez (qui correspond le plus à ce que j'ai
 +<code bash> 
 +$ qmk new-keymap -kb ergodox_ez 
 +Keymap Name: my-ergodox 
 +Ψ my-ergodox keymap directory created in: /home/simon/qmk_firmware/keyboards/ergodox_ez/keymaps/my-ergodox 
 +Ψ Compile a firmware with your new keymap by typing: 
  
 + qmk compile -kb ergodox_ez -km my-ergodox
 +</code>
  
-Creating load file for Flashergodox_lufa.hex +On peut modifier cette keymap :  
-avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock -R .signature ergodox_lufa.elf ergodox_lufa.hex+<code bash> 
 +$ vim ~/qmk_firmware/keyboards/ergodox_ez/keymaps/my-ergodox/keymap.
 +</code>
  
-Creating load file for EEPROMergodox_lufa.eep +Ensuite, on peut la compiler 
-avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \ +<code bash> 
---change-section-lma .eeprom=0 --no-change-warnings -O ihex ergodox_lufa.elf ergodox_lufa.eep || exit 0+$ qmk compile -kb ergodox_ez -km my-ergodox 
 +</code>
  
-Creating Extended Listing: ergodox_lufa.lss +==== Envoyer la configuration sur le clavier ====
-avr-objdump -h -S -z ergodox_lufa.elf > ergodox_lufa.lss+
  
-Creating Symbol Table: ergodox_lufa.sym +Enfin, on peut l'envoyer sur le clavier avec [[informatique:teensy-loader-cli]] :
-avr-nm -n ergodox_lufa.elf > ergodox_lufa.sym +
- +
-Size after: +
-   text    data     bss     dec     hex filename +
-  23404      58     314   23776    5ce0 ergodox_lufa.elf +
-</code> +
-</hidden> +
-Vérification du MCU (voir [[https://pjrc.com/teensy/loader_cli.html|pjrc.com]]:+
 <code bash> <code bash>
-simon@deb:~/Programmes/tmk_keyboard/keyboard/ergodox$ cat Makefile.lufa | grep MCU +$ teensy_loader_cli --mcu=atmega32u4 -v -w ~/qmk_firmware/.build/ergodox_ez_my-ergodox.hex
-# MCU name, you MUST set this to match the board you are using +
-MCU = atmega32u4 +
-#MCU = at90usb1286+
 </code> </code>
  
-{{ ::ergodox-teensy-flash01.png?400 |}} +**__État des lieux le 18/10/2020 :__** Toutes les touches fonctionnes mais je n'ai pas encore modifié la keymap créée par défaut... Il faut que j'attaque ça avant de m'habituer au clavier.
-{{ ::ergodox-teensy-flash02.png?400 |}} +
-{{ ::ergodox-teensy-flash03.png?400 |}} +
-</hidden>+
  
-Ensuite, j'ai essayé avec le firmware [[https://qmk.fm/|qmk]] ([[https://github.com/qmk/qmk_firmware.git|github]]), qui est lui-même basé sur tmk, avec plus de succès.+**__État des lieux le 19/10/2020 :__** J'avance, j'ai un layout à peu près convenable pour le calque de base.
  
-<code bash> +**__État des lieux le 30/11/2020 :__** J'approche d'un layout correct pour la base ainsi que le calque "média" et "symbole".
-simon@deb:~/git$ git clone https://github.com/qmk/qmk_firmware.git+
  
-simon@deb:~/git$ cd qmk_firmware/+**__État des lieux le 08/02/2021 :__** J'ai corrigé toutes les touches "lettres"
 +<hidden> 
 +<code c> 
 +#include QMK_KEYBOARD_H 
 +#include "version.h"
  
-simon@deb:~/git/qmk_firmware$ ls +enum layers { 
-autocomplete.sh     common.mk     LICENSE                  shell.nix +    BASE, // default layer 
-book.json           Dockerfile    license_GPLv2.md         show_options.mk +    SYMB, // symbols 
-bootloader.mk       docs          license_GPLv3.md         testlist.mk +    MDIA, // media keys 
-build_full_test.mk  Doxyfile      license_Modified_BSD.md  tests +};
-build_keyboard.mk   doxygen-todo  Makefile                 tmk_core +
-build_layout.mk     drivers       message.mk               users +
-build_test.mk       keyboards     quantum                  util +
-CODE_OF_CONDUCT.md  layouts       readme.md                Vagrantfile +
-common_features.mk  lib           secrets.tar.enc+
  
-simon@deb:~/git/qmk_firmware$ ls -al keyboards/ +enum custom_keycodes { 
-total 980 +#ifdef ORYX_CONFIGURATOR 
-(...) +  VRSN = EZ_SAFE_RANGE, 
-drwxr-xr-x   3 simon simon 4096 avr 10 19:49 ergodone +#else 
-drwxr-xr-x   4 simon simon 4096 avr 10 19:49 ergodox_ez +  VRSN = SAFE_RANGE, 
-drwxr-xr-x   3 simon simon 4096 avr 10 19:49 ergodox_infinity +#endif 
-(...)+  RGB_SLD 
 +};
  
-simon@deb:~/git/qmk_firmware$ ls -al keyboards/ergodox_ez+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 
-total 84 +/* Keymap 0: Basic layer 
-drwxr-xr-  4 simon simon  4096 avr 10 19:49 . + * 
-drwxr-xr-x 243 simon simon  4096 avr 10 19:49 .. + * ,--------------------------------------------------.           ,--------------------------------------------------. 
--rw-r--r--   1 simon simon   673 avr 10 19:49 190hotfix.sh + * | µ      |    |    |     4  |    |    |              |    |    |    |    |    |  Del   | 
--rw-r--r--   1 simon simon  4340 avr 10 19:49 config.h + * |--------+------+------+------+------+-------------|           |------+------+------+------+------+------+--------| 
--rw-r--r--   1 simon simon 11644 avr 10 19:49 ergodox_ez.c + * | Tab    |    |    |    |    |    |    |              |    |    |    |    |    |  BkSp  | 
--rw-r--r--   1 simon simon 11160 avr 10 19:49 ergodox_ez.h + * |--------+------+------+------+------+------|      |                |------+------+------+------+------+--------| 
--rw-r--r--   1 simon simon  8830 avr 10 19:49 info.json + * | CapsLk |   A  |   S  |    |    |    |------|           |------|    |    |    |   ;  |   '  |  Enter | 
-drwxr-xr- 24 simon simon  4096 avr 10 19:49 keymaps + * |--------+------+------+------+------+------|    |              |------+------+------+------+------+--------| 
--rw-r--r--   1 simon simon  9196 avr 10 19:49 matrix.c + * | LShift |</Ctrl|    |    |    |    |      |                |    |    |   ,  |    |//Ctrl| RShift | 
--rw-r--r--   simon simon  1298 avr 10 19:49 readme.md + * `--------+------+------+------+------+-------------'           `-------------+------+------+------+------+--------' 
--rw-r--r--   1 simon simon  3481 avr 10 19:49 rules.mk +   |  L1  | Home | PgUp | PgDn |  End |                                       | Left |  Up  | Down | Right|  L2  | 
-drwxr-xr-  2 simon simon  4096 avr 10 19:49 util+   `----------------------------------'                                       `----------------------------------' 
 +                                        ,-------------      ,-------------. 
 +                                        | App  | Alt  |        App |Ctrl/Esc| 
 + *                                 ,------|------|------|       |------+--------+------. 
 + *                                      |      | Alt  |       | AltGr|        |      | 
 +                                 | Space|Backsp|------|       |------|  Tab   |Enter | 
 +                                      |ace   | LGui |       | RGui |        |      | 
 +                                 `--------------------'       `----------------------' 
 + */ 
 +[BASE] = LAYOUT_ergodox_pretty( 
 +  KC_BSLS,         KC_1,           KC_2,    KC_3,    KC_4,    KC_5,    KC_6,                 KC_7,         KC_8,    KC_9,    KC_0,    KC_MINS, KC_EQL,            KC_DEL, 
 +  KC_TAB,          KC_Q,           KC_W,    KC_E,    KC_R,    KC_T,    KC_H,                 KC_U,         KC_I,    KC_O,    KC_P,    KC_LBRC, KC_RBRC,           KC_BSPC, 
 +  KC_CAPS,         KC_A,           KC_S,    KC_D,    KC_F,    KC_G,                                        KC_K,    KC_L,    KC_SCLN, KC_QUOT, KC_NUHS,           KC_ENT, 
 +  KC_LSFT,         CTL_T(KC_NUBS), KC_Z,    KC_X,    KC_C,    KC_V,    KC_B,                 KC_J,         KC_M,    KC_COMM, KC_DOT, KC_SLSH,  CTL_T(KC_GRV),    KC_RSFT, 
 +  DF(SYMB),        KC_HOME,        KC_PGDN, KC_PGUP, KC_END,                                               KC_LEFT, KC_DOWN, KC_UP,   KC_RIGHT,DF(MDIA), 
 +                                                           ALT_T(KC_APP), KC_LALT,     KC_APP,  CTL_T(KC_ESC), 
 +                                                                          KC_LALT,     KC_RALT, 
 +                                                         KC_SPC, KC_BSPC, KC_LGUI,     KC_RGUI, KC_TAB, KC_ENT 
 +), /*noteKC_GRAVE ? */ 
 +/* Keymap 1: Symbol Layer 
 + * 
 + * ,---------------------------------------------------.           ,--------------------------------------------------
 + * |          F1  |  F2  |  F3  |  F4  |  F5  |  F6  |            F7  |  F8  |  F9  |  F10 | F11  | F12  |        | 
 + * |---------+------+------+------+------+------+------|           |------+------+------+------+------+------+--------| 
 + * |            |    |    |    |    |      |                |  =      |    |    |    |        | 
 + * |---------+------+------+------+------+------|      |                |------+------+------+------+------+--------| 
 + * |           #  |    |    |    |    |------|           |------|    |    |    |    |    |        | 
 + * |---------+------+------+------+------+------|      |                |------+------+------+------+------+--------| 
 + * |            |    |    |    |    |      |                |  0     1  |    |    |   /  |        | 
 + * `---------+------+------+------+------+-------------'           `-------------+------+------+------+------+--------' 
 +   | L0    |      |      |      |      |                                            |      |      |      |  L2  | 
 +   `-----------------------------------'                                       `----------------------------------' 
 +                                        ,-------------.       ,-------------
 + *                                        | App  | Alt  |        App |Ctrl/Esc| 
 +                                 ,------|------|------|       |------+--------+------. 
 +                                      |      | Alt  |       | AltGr|        |      | 
 +                                 | Space|Backsp|------|       |------|  Tab   |Enter | 
 +                                      |ace   | LGui |       | RGui |        |      | 
 +                                 `--------------------'       `----------------------' 
 + */ 
 +[SYMB] = LAYOUT_ergodox_pretty( 
 +  KC_NO,   KC_F1,   KC_F2,   KC_F3,   KC_F4,   KC_F5,   KC_F6,       KC_F7,   KC_F8,   KC_F9,   KC_F10,  KC_F11,  KC_F12,  KC_TRNS, 
 +  KC_TRNS, KC_EXLM, KC_AT,   KC_LCBR, KC_RCBR, KC_PIPE, KC_NO,       KC_NO,   KC_SLSH, KC_KP_7, KC_KP_8, KC_KP_9, KC_PAST, KC_TRNS, 
 +  KC_TRNS, KC_HASH, KC_DLR,  KC_LPRN, KC_RPRN, KC_GRV,                        KC_PDOT, KC_KP_4, KC_KP_5, KC_KP_6, KC_PPLS, KC_TRNS, 
 +  KC_TRNS, KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_TILD, KC_NO,       KC_NO,   KC_KP_0, KC_KP_1, KC_KP_2, KC_KP_3, KC_PSLS, KC_TRNS, 
 +  DF(BASE),KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,                                         KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, DF(MDIA),
  
-simon@deb:~/git/qmk_firmware$ ls -al keyboards/ergodox_ez/keymaps/ +                                         ALT_T(KC_APP), KC_LALT,     KC_APP,  CTL_T(KC_ESC), 
-total 96 +                                                        KC_LALT,     KC_RALT, 
-(...) +                                       KC_SPC, KC_BSPC, KC_LGUI,     KC_RGUI, KC_TAB, KC_ENT
-drwxr-xr-x  2 simon simon 4096 avr 10 19:49 bdk +
-drwxr-xr-x  2 simon simon 4096 avr 10 19:49 bepo_tm_style +
-drwxr-xr-x  2 simon simon 4096 avr 10 19:49 blakedietz +
-(...)+
  
-simon@deb:~/git/qmk_firmware$ make git-submodule+), 
 +/* Keymap 2Media and mouse keys 
 + * 
 + * ,--------------------------------------------------.           ,--------------------------------------------------. 
 + * |        |      | MsBt3| MsBt4| MsBt5|      |      |           | Mute |      | MsBt3| MsBt4| MsBt5|      |        | 
 + * |--------+------+------+------+------+-------------|           |------+------+------+------+------+------+--------| 
 + * |        | WhlLf| Lclk | MsUp | Rclk |WhlUp |Bright|           | Vol+ |WhlUp | Lclk | MsUp | Rclk |WhlLf |  Prev  | 
 + * |--------+------+------+------+------+------|  +                  |------+------+------+------+------+--------| 
 + * |        | WhlRt|MsLeft|MsDown|MsRght|WhlDn |------|           |------|WhlDn |MsLeft|MsDown|MsRght|WhlRt |  Next  | 
 + * |--------+------+------+------+------+------|Bright|           | Vol- |------+------+------+------+------+--------| 
 + * |        |      |      |      |      |      |  -                  |      |      |      |      |      |  Play  | 
 + * `--------+------+------+------+------+-------------'           `-------------+------+------+------+------+--------' 
 +   | L0        |      |      |      |                                            |      |      |      |  L1  | 
 +   `----------------------------------'                                       `----------------------------------' 
 +                                        ,-------------.       ,-------------. 
 +                                        | App  | Alt  |        App |Ctrl/Esc| 
 +                                 ,------|------|------|       |------+--------+------. 
 +                                      |      | Alt  |       | AltGr|        |      | 
 +                                 | Space|Backsp|------|       |------|  Tab   |Enter | 
 +                                      |ace   | LGui |       | RGui |        |      | 
 +                                 `--------------------'       `----------------------' 
 + */ 
 +[MDIA] = LAYOUT_ergodox_pretty( 
 +  KC_NO,   KC_NO,   KC_BTN3, KC_BTN4, KC_BTN5, KC_NO,   KC_NO,       KC_MUTE, KC_NO,   KC_BTN3, KC_BTN4, KC_BTN5, KC_NO,   KC_NO, 
 +  KC_NO,   KC_WH_L, KC_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_BRIU,     KC_VOLU, KC_WH_U, KC_BTN1, KC_MS_U, KC_BTN2, KC_WH_L, KC_MPRV, 
 +  KC_NO,   KC_WH_R, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D,                       KC_WH_D, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_R, KC_MNXT, 
 +  KC_NO,   KC_NO,   KC_NO,   KC_NO,   KC_NO,   KC_NO,   KC_BRID,     KC_VOLD, KC_NO,   KC_NO,   KC_NO,   KC_NO,   KC_NO,   KC_MPLY, 
 +  DF(BASE),KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,                                         KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, DF(SYMB),
  
-simon@deb:~/git/qmk_firmware$ make ergodox_ez:bepo_tm_style:all  +                                         ALT_T(KC_APP), KC_LALT,     KC_APP,  CTL_T(KC_ESC), 
-QMK Firmware 0.6.328 +                                                        KC_LALT,     KC_RALT, 
-Making ergodox_ez with keymap bepo_tm_style and target all+                                       KC_SPC, KC_BSPC, KC_LGUI,     KC_RGUI, KC_TAB, KC_ENT 
 +), 
 +};
  
-avr-gcc (GCC5.4.0 +bool process_record_user(uint16_t keycode, keyrecord_t *record
-Copyright (C2015 Free Software Foundation, Inc. +  if (record->event.pressed) { 
-This is free softwaresee the source for copying conditions.  There is NO +    switch (keycode{ 
-warrantynot even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.+      case VRSN: 
 +        SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION); 
 +        return false; 
 +      #ifdef RGBLIGHT_ENABLE 
 +      case RGB_SLD: 
 +        rgblight_mode(1); 
 +        return false; 
 +      #endif 
 +    } 
 +  } 
 +  return true; 
 +}
  
-Size before: +// Runs just one time when the keyboard initializes. 
-   text    data     bss     dec     hex filename +void keyboard_post_init_user(void) { 
-      0   30658       0   30658    77c2 .build/ergodox_ez_bepo_tm_style.hex+#ifdef RGBLIGHT_COLOR_LAYER_0 
 +  rgblight_setrgb(RGBLIGHT_COLOR_LAYER_0); 
 +#endif 
 +};
  
-Compiling: tmk_core/common/command.c                                                                [OK] +// Runs whenever there is a layer state change
-Linking: .build/ergodox_ez_bepo_tm_style.elf                                                        [OK] +layer_state_t layer_state_set_user(layer_state_t state) { 
-Creating load file for flashing: .build/ergodox_ez_bepo_tm_style.hex                                [OK] +  ergodox_board_led_off(); 
-Copying ergodox_ez_bepo_tm_style.hex to qmk_firmware folder                                         [OK] +  ergodox_right_led_1_off(); 
-Checking file size of ergodox_ez_bepo_tm_style.hex                                                  [OK] +  ergodox_right_led_2_off(); 
- * The firmware size is fine - 30658/32256 (1598 bytes free) +  ergodox_right_led_3_off();
-</code>+
  
-Le firmware ergodox_ez_bepo_tm_style.hex est dans le dossier courant. On peut l'envoyer avec cette commande :  +  uint8_t layer = get_highest_layer(state)
-<code bash> +  switch (layer) { 
-simon@deb:~/git/qmk_firmware$ teensy_loader_cli --mcu=atmega32u4 -v -w ergodox_ez_bepo_tm_style.hex  +      case 0
-Teensy Loader, Command Line, Version 2.1 +        #ifdef RGBLIGHT_COLOR_LAYER_0 
-Read "ergodox_ez_bepo_tm_style.hex"30658 bytes, 95.0% usage +          rgblight_setrgb(RGBLIGHT_COLOR_LAYER_0); 
-Waiting for Teensy device... +        #endif 
- (hintpress the reset button+        break; 
-Found HalfKay Bootloader +      case 1
-Read "ergodox_ez_bepo_tm_style.hex"30658 bytes, 95.0% usage +        ergodox_right_led_1_on(); 
-Programming................................................................................................................................................................................................................................................ +        #ifdef RGBLIGHT_COLOR_LAYER_1 
-Booting +          rgblight_setrgb(RGBLIGHT_COLOR_LAYER_1); 
-</code>+        #endif 
 +        break; 
 +      case 2
 +        ergodox_right_led_2_on(); 
 +        #ifdef RGBLIGHT_COLOR_LAYER_2 
 +          rgblight_setrgb(RGBLIGHT_COLOR_LAYER_2); 
 +        #endif 
 +        break; 
 +      case 3
 +        ergodox_right_led_3_on(); 
 +        #ifdef RGBLIGHT_COLOR_LAYER_3 
 +          rgblight_setrgb(RGBLIGHT_COLOR_LAYER_3); 
 +        #endif 
 +        break; 
 +      case 4: 
 +        ergodox_right_led_1_on(); 
 +        ergodox_right_led_2_on(); 
 +        #ifdef RGBLIGHT_COLOR_LAYER_4 
 +          rgblight_setrgb(RGBLIGHT_COLOR_LAYER_4); 
 +        #endif 
 +        break; 
 +      case 5
 +        ergodox_right_led_1_on(); 
 +        ergodox_right_led_3_on(); 
 +        #ifdef RGBLIGHT_COLOR_LAYER_5 
 +          rgblight_setrgb(RGBLIGHT_COLOR_LAYER_5); 
 +        #endif 
 +        break; 
 +      case 6: 
 +        ergodox_right_led_2_on(); 
 +        ergodox_right_led_3_on(); 
 +        #ifdef RGBLIGHT_COLOR_LAYER_6 
 +          rgblight_setrgb(RGBLIGHT_COLOR_LAYER_6); 
 +        #endif 
 +        break; 
 +      case 7: 
 +        ergodox_right_led_1_on(); 
 +        ergodox_right_led_2_on(); 
 +        ergodox_right_led_3_on(); 
 +        #ifdef RGBLIGHT_COLOR_LAYER_7 
 +          rgblight_setrgb(RGBLIGHT_COLOR_LAYER_7); 
 +        #endif 
 +        break; 
 +      default: 
 +        break; 
 +    }
  
-Maintenant qu'on a compris la procédure pour envoyer un layout choisi sur le clavier, on doit faire le layout qui nous convient et recommencer la procédure. +  return state; 
- +};
-===== Configurer le layout ===== +
-On commence par faire une copie du layout bepo pour l'ergodox_ez : +
-<code bash> +
-simon@deb:~/git/qmk_firmware$ cp -r keyboards/ergodox_ez/keymaps/bepo_tm_style/ keyboards/ergodox_ez/keymaps/bepo_simon +
- +
-simon@deb:~/git/qmk_firmware$ ls -al keyboards/ergodox_ez/keymaps/bepo_simon/ +
-total 32 +
-drwxr-xr-x  2 simon simon  4096 avr 10 20:10 . +
-drwxr-xr-x 25 simon simon  4096 avr 10 20:10 .. +
--rwxr-xr-x  1 simon simon   694 avr 10 20:10 config.h +
--rwxr-xr-x  1 simon simon 12235 avr 10 20:10 keymap.c +
--rwxr-xr-x  1 simon simon   770 avr 10 20:10 readme.md +
--rwxr-xr-x  1 simon simon   646 avr 10 20:10 rules.mk+
 </code> </code>
 +</hidden>
  
 +===== Sources =====
 +  * [[https://www.ergodox.io/|ErgoDox]] : Le site de l'ErgoDox "d'origine".
 +  * [[https://ergodox-ez.com/|ErgoDox-EZ]] : Une nouvelle version de l'ErgoDox.
 +  * [[https://www.reddit.com/r/MechanicalKeyboards/|MechanicalKeyboards]] : La communauté Reddit autour des claviers mécaniques.
ergodox.1554922766.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)