Browse Source

fixes s60_x keyboard

pull/1269/head
Jack Humbert 7 years ago
parent
commit
d1d2b87f97
53 changed files with 44 additions and 31 deletions
  1. +0
    -1
      keyboards/s60-x/s60-x.c
  2. BIN
      keyboards/s60-x/s60-x_precompiled.zip
  3. +0
    -0
      keyboards/s60_x/Makefile
  4. +13
    -0
      keyboards/s60_x/config.h
  5. +0
    -0
      keyboards/s60_x/default/Makefile
  6. +0
    -0
      keyboards/s60_x/default/config.h
  7. +0
    -0
      keyboards/s60_x/default/default.c
  8. +0
    -0
      keyboards/s60_x/default/default.h
  9. +0
    -0
      keyboards/s60_x/default/rules.mk
  10. +0
    -0
      keyboards/s60_x/keymaps/ansi_qwertz/Makefile
  11. +0
    -0
      keyboards/s60_x/keymaps/ansi_qwertz/config.h
  12. +0
    -0
      keyboards/s60_x/keymaps/ansi_qwertz/docs/KB_US-International-Alternative.png
  13. +0
    -0
      keyboards/s60_x/keymaps/ansi_qwertz/docs/KB_US-International-Alternative.svg
  14. +0
    -0
      keyboards/s60_x/keymaps/ansi_qwertz/docs/KB_US-International-Alternative.svg.2016_08_18_09_06_36.0.svg
  15. +0
    -0
      keyboards/s60_x/keymaps/ansi_qwertz/docs/KB_US-International.png
  16. +0
    -0
      keyboards/s60_x/keymaps/ansi_qwertz/docs/KB_US-International.svg
  17. +0
    -0
      keyboards/s60_x/keymaps/ansi_qwertz/docs/base_layer.PNG
  18. +0
    -0
      keyboards/s60_x/keymaps/ansi_qwertz/docs/function_layer.PNG
  19. +0
    -0
      keyboards/s60_x/keymaps/ansi_qwertz/docs/gaming_layer.PNG
  20. +1
    -1
      keyboards/s60_x/keymaps/ansi_qwertz/keymap.c
  21. +0
    -0
      keyboards/s60_x/keymaps/ansi_qwertz/readme.md
  22. +1
    -1
      keyboards/s60_x/keymaps/custom/keymap.c
  23. +0
    -0
      keyboards/s60_x/keymaps/custom/readme.md
  24. +18
    -7
      keyboards/s60_x/keymaps/dbroqua/keymap.c
  25. +1
    -1
      keyboards/s60_x/keymaps/default/keymap.c
  26. +0
    -0
      keyboards/s60_x/keymaps/default/readme.md
  27. +1
    -1
      keyboards/s60_x/keymaps/hasu/keymap.c
  28. +0
    -0
      keyboards/s60_x/keymaps/hasu/readme.md
  29. +1
    -1
      keyboards/s60_x/keymaps/hhkb/keymap.c
  30. +0
    -0
      keyboards/s60_x/keymaps/hhkb/readme.md
  31. +1
    -1
      keyboards/s60_x/keymaps/iso/keymap.c
  32. +0
    -0
      keyboards/s60_x/keymaps/iso/readme.md
  33. +1
    -1
      keyboards/s60_x/keymaps/jpec/keymap.c
  34. +0
    -0
      keyboards/s60_x/keymaps/jpec/readme.md
  35. +1
    -1
      keyboards/s60_x/keymaps/plain/keymap.c
  36. +0
    -0
      keyboards/s60_x/keymaps/plain/readme.md
  37. +1
    -1
      keyboards/s60_x/keymaps/poker/keymap.c
  38. +0
    -0
      keyboards/s60_x/keymaps/poker/readme.md
  39. +1
    -1
      keyboards/s60_x/keymaps/poker_bit/keymap.c
  40. +0
    -0
      keyboards/s60_x/keymaps/poker_bit/readme.md
  41. +1
    -1
      keyboards/s60_x/keymaps/poker_set/keymap.c
  42. +0
    -0
      keyboards/s60_x/keymaps/poker_set/readme.md
  43. +1
    -1
      keyboards/s60_x/keymaps/spacefn/keymap.c
  44. +0
    -0
      keyboards/s60_x/keymaps/spacefn/readme.md
  45. +0
    -5
      keyboards/s60_x/readme.md
  46. +0
    -0
      keyboards/s60_x/rgb/Makefile
  47. +0
    -6
      keyboards/s60_x/rgb/config.h
  48. +0
    -0
      keyboards/s60_x/rgb/rgb.c
  49. +0
    -0
      keyboards/s60_x/rgb/rgb.h
  50. +0
    -0
      keyboards/s60_x/rgb/rules.mk
  51. +0
    -0
      keyboards/s60_x/rules.mk
  52. +1
    -0
      keyboards/s60_x/s60_x.c
  53. +0
    -0
      keyboards/s60_x/s60_x.h

+ 0
- 1
keyboards/s60-x/s60-x.c View File

@ -1 +0,0 @@
#include "s60-x.h"

BIN
keyboards/s60-x/s60-x_precompiled.zip View File


keyboards/s60-x/Makefile → keyboards/s60_x/Makefile View File


keyboards/s60-x/config.h → keyboards/s60_x/config.h View File

@ -32,6 +32,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROWS 5
#define MATRIX_COLS 15
/* number of backlight levels */
#define BACKLIGHT_PIN B7
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 3
#endif
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
@ -43,4 +49,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
)
#ifdef SUBPROJECT_default
#include "default/config.h"
#endif
#ifdef SUBPROJECT_rgb
#include "rgb/config.h"
#endif
#endif

keyboards/s60-x/default/Makefile → keyboards/s60_x/default/Makefile View File


keyboards/s60-x/default/config.h → keyboards/s60_x/default/config.h View File


keyboards/s60-x/default/default.c → keyboards/s60_x/default/default.c View File


keyboards/s60-x/default/default.h → keyboards/s60_x/default/default.h View File


keyboards/s60-x/default/rules.mk → keyboards/s60_x/default/rules.mk View File


keyboards/s60-x/keymaps/ansi_qwertz/Makefile → keyboards/s60_x/keymaps/ansi_qwertz/Makefile View File


keyboards/s60-x/keymaps/ansi_qwertz/config.h → keyboards/s60_x/keymaps/ansi_qwertz/config.h View File


keyboards/s60-x/keymaps/ansi_qwertz/docs/KB_US-International-Alternative.png → keyboards/s60_x/keymaps/ansi_qwertz/docs/KB_US-International-Alternative.png View File


keyboards/s60-x/keymaps/ansi_qwertz/docs/KB_US-International-Alternative.svg → keyboards/s60_x/keymaps/ansi_qwertz/docs/KB_US-International-Alternative.svg View File


keyboards/s60-x/keymaps/ansi_qwertz/docs/KB_US-International-Alternative.svg.2016_08_18_09_06_36.0.svg → keyboards/s60_x/keymaps/ansi_qwertz/docs/KB_US-International-Alternative.svg.2016_08_18_09_06_36.0.svg View File


keyboards/s60-x/keymaps/ansi_qwertz/docs/KB_US-International.png → keyboards/s60_x/keymaps/ansi_qwertz/docs/KB_US-International.png View File


keyboards/s60-x/keymaps/ansi_qwertz/docs/KB_US-International.svg → keyboards/s60_x/keymaps/ansi_qwertz/docs/KB_US-International.svg View File


keyboards/s60-x/keymaps/ansi_qwertz/docs/base_layer.PNG → keyboards/s60_x/keymaps/ansi_qwertz/docs/base_layer.PNG View File


keyboards/s60-x/keymaps/ansi_qwertz/docs/function_layer.PNG → keyboards/s60_x/keymaps/ansi_qwertz/docs/function_layer.PNG View File


keyboards/s60-x/keymaps/ansi_qwertz/docs/gaming_layer.PNG → keyboards/s60_x/keymaps/ansi_qwertz/docs/gaming_layer.PNG View File


keyboards/s60-x/keymaps/ansi_qwertz/keymap.c → keyboards/s60_x/keymaps/ansi_qwertz/keymap.c View File

@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "s60-x.h"
#include "s60_x.h"
//make keymap a little easier to read
#define _______ KC_TRNS

keyboards/s60-x/keymaps/ansi_qwertz/readme.md → keyboards/s60_x/keymaps/ansi_qwertz/readme.md View File


keyboards/s60-x/keymaps/custom/keymap.c → keyboards/s60_x/keymaps/custom/keymap.c View File

@ -1,4 +1,4 @@
#include "s60-x.h"
#include "s60_x.h"
/* Main layer: Test layout, using all keys.

keyboards/s60-x/keymaps/custom/readme.md → keyboards/s60_x/keymaps/custom/readme.md View File


keyboards/s60-x/keymaps/dbroqua/keymap.c → keyboards/s60_x/keymaps/dbroqua/keymap.c View File

@ -1,4 +1,4 @@
#include "s60-x.h"
#include "s60_x.h"
#define _DEFAULT 0
#define _FN 1
@ -73,12 +73,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
keyevent_t event = record->event;
switch (id) {
}
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
return MACRO_NONE;
}
@ -108,42 +103,58 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
switch (id) {
case RGBLED_TOGGLE:
if (record->event.pressed) {
#ifdef RGB_ENABLE
rgblight_toggle();
#endif
}
break;
case RGBLED_INCREASE_HUE:
if (record->event.pressed) {
#ifdef RGB_ENABLE
rgblight_increase_hue();
#endif
}
break;
case RGBLED_DECREASE_HUE:
if (record->event.pressed) {
#ifdef RGB_ENABLE
rgblight_decrease_hue();
#endif
}
break;
case RGBLED_INCREASE_SAT:
if (record->event.pressed) {
#ifdef RGB_ENABLE
rgblight_increase_sat();
#endif
}
break;
case RGBLED_DECREASE_SAT:
if (record->event.pressed) {
#ifdef RGB_ENABLE
rgblight_decrease_sat();
#endif
}
break;
case RGBLED_INCREASE_VAL:
if (record->event.pressed) {
#ifdef RGB_ENABLE
rgblight_increase_val();
#endif
}
break;
case RGBLED_DECREASE_VAL:
if (record->event.pressed) {
#ifdef RGB_ENABLE
rgblight_decrease_val();
#endif
}
break;
case RGBLED_STEP_MODE:
if (record->event.pressed) {
#ifdef RGB_ENABLE
rgblight_step();
#endif
}
break;
}

keyboards/s60-x/keymaps/default/keymap.c → keyboards/s60_x/keymaps/default/keymap.c View File

@ -1,4 +1,4 @@
#include "s60-x.h"
#include "s60_x.h"
/* 0: Main layer

keyboards/s60-x/keymaps/default/readme.md → keyboards/s60_x/keymaps/default/readme.md View File


keyboards/s60-x/keymaps/hasu/keymap.c → keyboards/s60_x/keymaps/hasu/keymap.c View File

@ -1,4 +1,4 @@
#include "s60-x.h"
#include "s60_x.h"
/*
* Hasu

keyboards/s60-x/keymaps/hasu/readme.md → keyboards/s60_x/keymaps/hasu/readme.md View File


keyboards/s60-x/keymaps/hhkb/keymap.c → keyboards/s60_x/keymaps/hhkb/keymap.c View File

@ -1,4 +1,4 @@
#include "s60-x.h"
#include "s60_x.h"
/*
* HHKB Layout

keyboards/s60-x/keymaps/hhkb/readme.md → keyboards/s60_x/keymaps/hhkb/readme.md View File


keyboards/s60-x/keymaps/iso/keymap.c → keyboards/s60_x/keymaps/iso/keymap.c View File

@ -1,4 +1,4 @@
#include "s60-x.h"
#include "s60_x.h"
/* 0: Main layer

keyboards/s60-x/keymaps/iso/readme.md → keyboards/s60_x/keymaps/iso/readme.md View File


keyboards/s60-x/keymaps/jpec/keymap.c → keyboards/s60_x/keymaps/jpec/keymap.c View File

@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "s60-x.h"
#include "s60_x.h"
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Layout 0: Default Layer

keyboards/s60-x/keymaps/jpec/readme.md → keyboards/s60_x/keymaps/jpec/readme.md View File


keyboards/s60-x/keymaps/plain/keymap.c → keyboards/s60_x/keymaps/plain/keymap.c View File

@ -1,4 +1,4 @@
#include "s60-x.h"
#include "s60_x.h"
/* Main layer:

keyboards/s60-x/keymaps/plain/readme.md → keyboards/s60_x/keymaps/plain/readme.md View File


keyboards/s60-x/keymaps/poker/keymap.c → keyboards/s60_x/keymaps/poker/keymap.c View File

@ -1,4 +1,4 @@
#include "s60-x.h"
#include "s60_x.h"
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* 0: qwerty

keyboards/s60-x/keymaps/poker/readme.md → keyboards/s60_x/keymaps/poker/readme.md View File


keyboards/s60-x/keymaps/poker_bit/keymap.c → keyboards/s60_x/keymaps/poker_bit/keymap.c View File

@ -1,4 +1,4 @@
#include "s60-x.h"
#include "s60_x.h"
// Poker fix with toggle and bit operation
// Fn + Esc = `

keyboards/s60-x/keymaps/poker_bit/readme.md → keyboards/s60_x/keymaps/poker_bit/readme.md View File


keyboards/s60-x/keymaps/poker_set/keymap.c → keyboards/s60_x/keymaps/poker_set/keymap.c View File

@ -1,4 +1,4 @@
#include "s60-x.h"
#include "s60_x.h"
// Poker fix with set(state transition)
// Fn + Esc = `

keyboards/s60-x/keymaps/poker_set/readme.md → keyboards/s60_x/keymaps/poker_set/readme.md View File


keyboards/s60-x/keymaps/spacefn/keymap.c → keyboards/s60_x/keymaps/spacefn/keymap.c View File

@ -1,4 +1,4 @@
#include "s60-x.h"
#include "s60_x.h"
/*
* SpaceFN

keyboards/s60-x/keymaps/spacefn/readme.md → keyboards/s60_x/keymaps/spacefn/readme.md View File


keyboards/s60-x/readme.md → keyboards/s60_x/readme.md View File

@ -5,11 +5,6 @@ DIY compact keyboard designed by VinnyCordeiro for Sentraq. Most of the keymaps
## S60X Resources
- [Massdrop page](https://www.massdrop.com/buy/sentraq-60-diy-keyboard-kit?mode=guest_open)
## Quickstart
If you just want to test a few layouts, the archive [s60-x_precompiled.zip](s60-x_precompiled.zip) contains pre-compiled .hex-files for all available keymaps. Not all of them are tested.
You only need to flash them onto your keyboard, which is explained below, there's no need to setup a build environment. For a full list
## Flashing your keyboard
The recommended programs for flashing your keyboard are [Atmel FLIP](http://www.atmel.com/tools/FLIP.aspx) (Windows) and [dfu-programmer](http://dfu-programmer.sourceforge.net/) (Linux/Windows).

keyboards/s60-x/rgb/Makefile → keyboards/s60_x/rgb/Makefile View File


keyboards/s60-x/rgb/config.h → keyboards/s60_x/rgb/config.h View File

@ -11,12 +11,6 @@
#define MATRIX_COL_PINS { D0, D1, D2, D3, D5, B6, C6, C7, F1, F0, E6, B3, B2, B1, B0 }
#define UNUSED_PINS
/* number of backlight levels */
#define BACKLIGHT_PIN B7
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 3
#endif
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

keyboards/s60-x/rgb/rgb.c → keyboards/s60_x/rgb/rgb.c View File


keyboards/s60-x/rgb/rgb.h → keyboards/s60_x/rgb/rgb.h View File


keyboards/s60-x/rgb/rules.mk → keyboards/s60_x/rgb/rules.mk View File


keyboards/s60-x/rules.mk → keyboards/s60_x/rules.mk View File


+ 1
- 0
keyboards/s60_x/s60_x.c View File

@ -0,0 +1 @@
#include "s60_x.h"

keyboards/s60-x/s60-x.h → keyboards/s60_x/s60_x.h View File


Loading…
Cancel
Save