Browse Source

Finalized the config

pull/14484/head
Batuhan Başerdem 2 years ago
parent
commit
7e408ce32f
14 changed files with 36 additions and 136 deletions
  1. +0
    -18
      keyboards/bigseries/1key/keymaps/bbaserdem/README.md
  2. +0
    -19
      keyboards/bigseries/1key/keymaps/bbaserdem/config.h
  3. +0
    -28
      keyboards/bigseries/1key/keymaps/bbaserdem/keymap.c
  4. +0
    -6
      keyboards/bigseries/1key/keymaps/bbaserdem/rules.mk
  5. +0
    -6
      layouts/community/ortho_4x12/bbaserdem/README.md
  6. +1
    -1
      layouts/community/ortho_4x12/bbaserdem/config.h
  7. +6
    -6
      layouts/community/split_3x5_3/bbaserdem-disable/README.md
  8. +1
    -11
      layouts/community/split_3x5_3/bbaserdem-disable/keymap.c
  9. +3
    -21
      users/bbaserdem/README.md
  10. +8
    -9
      users/bbaserdem/bb-underglow.c
  11. +6
    -6
      users/bbaserdem/bbaserdem.c
  12. +5
    -5
      users/bbaserdem/bbaserdem.h
  13. +1
    -0
      users/bbaserdem/keymap-bitmaps/.gitignore
  14. +5
    -0
      users/bbaserdem/rules.mk

+ 0
- 18
keyboards/bigseries/1key/keymaps/bbaserdem/README.md View File

@ -1,18 +0,0 @@
This file contains my [1x1](../../../default/ortho_1x1) board layouts
Check out the [user readme](../../../../users/bbaserdem/README.md) for more info.
# Big Series PCB
Big switch that does tap dance, and works as a fancy light only.
The PCB was sourced from Woodkeys (Cole Markham);
Currently AWOL and scammed people out of their money (me personally for 150$)
Cannot recommend anyone try to obtain one of these PCBs.
My PCB to USB connector broke; and could not repair it yet.
Managed to obtain a custom glow in the dark keycap for this.
## Status
* [x] Layout adapted
* [ ] Have not tested build yet.
* [ ] Have not confirmed on board

+ 0
- 19
keyboards/bigseries/1key/keymaps/bbaserdem/config.h View File

@ -1,19 +0,0 @@
/*
Copyright 2019 Batuhan Başerdem <baserdem.batuhan@gmail.com> @bbaserdem
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#ifdef TAPPING_TERM
#undef TAPPING_TERM
#endif
#define TAPPING_TERM 500

+ 0
- 28
keyboards/bigseries/1key/keymaps/bbaserdem/keymap.c View File

@ -1,28 +0,0 @@
/*
Copyright 2019 Batuhan Baserdem
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
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 QMK_KEYBOARD_H
#include "bbaserdem.h"
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(BB_BIGS)
};
void matrix_init_keymap(void) {
rgblight_enable();
rgblight_mode_noeeprom(RGBLIGHT_MODE_RAINBOW_MOOD);
rgblight_sethsv_noeeprom(0,255,255);
}

+ 0
- 6
keyboards/bigseries/1key/keymaps/bbaserdem/rules.mk View File

@ -1,6 +0,0 @@
# Differences from userspace
BACKLIGHT_ENABLE = no
RGBLIGHT_ENABLE = yes
RGB_MATRIX_ENABLE = no
AUDIO_ENABLE = no
BLUETOOTH_ENABLE = no

+ 0
- 6
layouts/community/ortho_4x12/bbaserdem/README.md View File

@ -10,9 +10,3 @@ To sell soon; don't use them anymore, but will keep the light version.
A planck rev4 replacement; for my acrylic planck case which used to host a now
defunct rev4.
## Status
* [x] Layout adapted
* [ ] Have not tested build yet.
* [ ] Have not confirmed on board

+ 1
- 1
layouts/community/ortho_4x12/bbaserdem/config.h View File

@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Code pertaining to planck rev6
#if defined(KEYBOARD_planck_rev6)
// Encoder I use;
#ifdef RGB_DI_PIN
#ifdef ENCODER_RESOLUTION
#undef ENCODER_RESOLUTION
#endif
#define ENCODER_RESOLUTION 2


+ 6
- 6
layouts/community/split_3x5_3/bbaserdem-disable/README.md View File

@ -5,14 +5,14 @@ Check out the [user readme](../../../../users/bbaserdem/README.md) for more info
Using a no 6th column crkbd (rev 2.1 choc) as a mobile keyboard.
This version uses Elite-C and ProMicro as controllers; hence no RGB and OLED.
This version uses ProMicro as controllers; can't have OLED and RGB at the same time.
## Build
Build command: `CFLAGS="-Wno-error=deprecated" TBF`
Used to flash Pro Micro explicitly using the following line;
## Todo
```
sudo avrdude -p atmgea34u4 -P "$(ls /dev/ttyACM*)" -c avr109 -D -U flash:w:.build/<keeb>.hex
```
* Switch PCB to the Proton-C compatible hotswap switch.
* Or use cable rerouting to make the pcb Proton-C compatible.
* Or find a way to use both OLED and LEDs.
But it does not work anymore in Archlinux.

+ 1
- 11
layouts/community/split_3x5_3/bbaserdem-disable/keymap.c View File

@ -105,17 +105,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*          141306303738
*          
*/
// Sided color-setting
void keylight_set_left(uint8_t red, uint8_t green, uint8_t blue) {
for (int i = 0; i < 24; i++) {
rgb_matrix_set_color(i, red, green, blue);
}
}
void keylight_set_right(uint8_t red, uint8_t green, uint8_t blue) {
for (int i = 24; i < 48; i++) {
rgb_matrix_set_color(i, red, green, blue);
}
}
// End of differentiations
#endif


+ 3
- 21
users/bbaserdem/README.md View File

@ -2,13 +2,6 @@
My userspace code for my various keyboards; available here.
# Todo
- [ ] Convert all RGB code to use RGB matrix.
- [ ] Make workflow so that ARM and AVR are both differentiable.
- [ ] Finish README to be intelligible.
- [ ] Generate JSON files to be used with Keyboard-Layout-Editor to produce images.
## Builds
These are my keyboard builds and info, it allows me to plan out my builds.
@ -117,8 +110,9 @@ These files are prefixed with `sbp-` to remove any naming clash.
* [bb-audio](bb-audio.c): Code dealing with audio playback using onboard sound.
* [bb-encoder](bb-encoder.c): Rotary encoder sutff.
* [bb-macro](bb-macro.c): My custom keycodes; macros, tap dances, etc.
* [bb-oled](bb-oled.c): Controls OLED displays.
* [bb-rgb](bb-rgb.c): Controls per-key RGB LED matrix stuff.
* [bb-oled](bb-oled.c): Controls OLED displays. For higher memory; there is also [bb-oled-extra](bb-oled-extra.c).
* [bb-rgb](bb-rgb.c): Controls per-key RGB LED matrix stuff, and layer indication. Uses `RGB_MATRIX`.
* [bb-underglaw](bb-underglow.c): Controls RGB LED strip, and layer indication. Uses `RGBLIGHT`.
# Layout
@ -127,8 +121,6 @@ My personal layout is mostly inspired by the
There are some changes to make it friendlier to international keyboards.
My board is compatible with software implementation of Dvorak and Turkish F.
WIP
## Base
Base layer uses tap-hold functionality to have access to modifiers.
@ -137,13 +129,3 @@ as to make those modifiers accessible to the keys that overlap them.
Besides the Alt key; each side has the proper L/R version of the modifier.
Since Right Alt key functions as AltGr key;
both the L and R versions are available on each side.
# Shoutout
* To [drashna](../drashna/readme.md), for documenting how to use userspace features;
all my code is pretty much inspired from them.
* To [Manna Harbour](../manna-harbour_miryoku/README.org) for their
amazing keymap that inspired me to recreate mine and allowed me to move to
smaller split keyboards.
* To people who taught me C and have me enjoy working with it;
Dr. Mehmet Enis Oğuz and Dr. Veysi Erkcan Özcan.

+ 8
- 9
users/bbaserdem/bb-underglow.c View File

@ -23,19 +23,18 @@ const rgblight_segment_t PROGMEM bb_base_layer[] = RGBLIGHT_LAYER_SEGMENTS(
);
// Gaming layer is turquoise
const rgblight_segment_t PROGMEM bb_game_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{RGBLIGHT_LEFT_BEG, RGBLIGHT_LEFT_NUM, HSV_TURQUOISE}
{RGBLIGHT_LEFT_BEG, RGBLIGHT_LEFT_NUM, HSV_PURPLE}
);
// Character overlay is chartereuse
const rgblight_segment_t PROGMEM bb_char_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{0, RGBLED_NUM, HSV_CHARTREUSE}
{0, RGBLED_NUM, HSV_GOLD}
);
// Right-hand layers
// Media layer is orange
const rgblight_segment_t PROGMEM bb_medi_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{RGBLIGHT_RIGHT_BEG, RGBLIGHT_RIGHT_NUM, 30, 255, 255
}
{RGBLIGHT_RIGHT_BEG, RGBLIGHT_RIGHT_NUM, HSV_MAGENTA}
);
// Navigation layer is green
const rgblight_segment_t PROGMEM bb_navi_layer[] = RGBLIGHT_LAYER_SEGMENTS(
@ -43,14 +42,14 @@ const rgblight_segment_t PROGMEM bb_navi_layer[] = RGBLIGHT_LAYER_SEGMENTS(
);
// Symbol layer is purple
const rgblight_segment_t PROGMEM bb_symb_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{RGBLIGHT_RIGHT_BEG, RGBLIGHT_RIGHT_NUM, HSV_PURPLE}
{RGBLIGHT_RIGHT_BEG, RGBLIGHT_RIGHT_NUM, HSV_YELLOW}
);
// Left-hand layers
// Number layer is blue
const rgblight_segment_t PROGMEM bb_numb_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{RGBLIGHT_LEFT_BEG, RGBLIGHT_LEFT_NUM, HSV_CYAN}
{RGBLIGHT_LEFT_BEG, RGBLIGHT_LEFT_NUM, HSV_BLUE}
);
// Function layer is red
const rgblight_segment_t PROGMEM bb_func_layer[] = RGBLIGHT_LAYER_SEGMENTS(
@ -58,12 +57,12 @@ const rgblight_segment_t PROGMEM bb_func_layer[] = RGBLIGHT_LAYER_SEGMENTS(
);
// Pointer layer is yellow
const rgblight_segment_t PROGMEM bb_mous_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{RGBLIGHT_LEFT_BEG, RGBLIGHT_LEFT_NUM, HSV_YELLOW}
{RGBLIGHT_LEFT_BEG, RGBLIGHT_LEFT_NUM, HSV_SPRINGGREEN}
);
// Music playback layer is magenta
const rgblight_segment_t PROGMEM bb_musi_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{0, RGBLED_NUM, HSV_MAGENTA}
{0, RGBLED_NUM, HSV_ORANGE}
);
const rgblight_segment_t* const PROGMEM bb_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
@ -109,5 +108,5 @@ void shutdown_underglow(void) {
// Make the LED's red on shutdown
rgblight_enable_noeeprom();
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
rgblight_sethsv(HSV_PINK);
rgblight_sethsv(HSV_WHITE);
}

+ 6
- 6
users/bbaserdem/bbaserdem.c View File

@ -227,13 +227,13 @@ layer_state_t layer_state_set_user(layer_state_t state) {
// Keymap layer state setting
state = layer_state_set_keymap(state);
// For underglow stuff
#ifdef RGBLIGHT_ENABLE
layer_state_set_underglow(state);
#endif
# ifdef RGBLIGHT_ENABLE
state = layer_state_set_underglow(state);
# endif
// Audio playback
#ifdef AUDIO_ENABLE
layer_state_set_audio(state);
#endif
# ifdef AUDIO_ENABLE
state = layer_state_set_audio(state);
# endif
return state;
}


+ 5
- 5
users/bbaserdem/bbaserdem.h View File

@ -32,6 +32,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef BACKLIGHT_ENABLE
#include "bb-backlight.h"
#endif
// Underglow light using rgb LEDs
#ifdef RGBLIGHT_ENABLE
#include "bb-underglow.h"
#endif
// Keycap backlight using rgb LEDs
#ifdef RGB_MATRIX_ENABLE
#include "bb-rgb.h"
@ -123,10 +127,6 @@ enum userspace_custom_keycodes {
# ifdef ENCODER_ENABLE
BB_ENC0,
BB_ENC1,
# endif
// Some RGB toggles
# ifdef RGB_MATRIX_ENABLE
BB_RGBO,
# endif
// Oled editor
# ifdef OLED_ENABLE
@ -420,7 +420,7 @@ enum userspace_layers {
*
* Speed Mod Hue Sat Bri RGB light control
*
* MediaPrev.MuTogMuStpNext Media control
* Togg.Prev.MuTogMuStpNext Media control
*
* Sink Vol - Mut EjectVol + Volume control
*


+ 1
- 0
users/bbaserdem/keymap-bitmaps/.gitignore View File

@ -1,3 +1,4 @@
*.bmp
splitImages
templates
!.gitignore

+ 5
- 0
users/bbaserdem/rules.mk View File

@ -63,6 +63,11 @@ ifeq ($(strip $(ENCODER_ENABLE)), yes)
SRC += bb-encoder.c
endif
# RGB LED (Underglow) code
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
SRC += bb-underglow.c
endif
# RGB LED (Perkey) code
ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
SRC += bb-rgb.c


Loading…
Cancel
Save