diff options
Diffstat (limited to 'keyboards/staryu/config.h')
| -rwxr-xr-x | keyboards/staryu/config.h | 60 |
1 files changed, 27 insertions, 33 deletions
diff --git a/keyboards/staryu/config.h b/keyboards/staryu/config.h index 268fe991a..7f8b39ba7 100755 --- a/keyboards/staryu/config.h +++ b/keyboards/staryu/config.h | |||
| @@ -14,8 +14,7 @@ GNU General Public License for more details. | |||
| 14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License |
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | #ifndef CONFIG_H | 17 | #pragma once |
| 18 | #define CONFIG_H | ||
| 19 | 18 | ||
| 20 | #include "config_common.h" | 19 | #include "config_common.h" |
| 21 | 20 | ||
| @@ -32,43 +31,38 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 32 | #define MATRIX_COLS 5 | 31 | #define MATRIX_COLS 5 |
| 33 | 32 | ||
| 34 | /* key matrix pins */ | 33 | /* key matrix pins */ |
| 35 | #define MATRIX_ROW_PINS { } | 34 | #define MATRIX_ROW_PINS { NO_PIN } |
| 36 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D4 } | 35 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D4 } |
| 37 | #define UNUSED_PINS | 36 | #define UNUSED_PINS |
| 38 | 37 | ||
| 39 | // from light_ws2812_config @ | 38 | /* COL2ROW or ROW2COL */ |
| 40 | // https://github.com/kairyu/tmk_keyboard_custom/tree/master/keyboard/staryu | 39 | #define DIODE_DIRECTION COL2ROW |
| 40 | |||
| 41 | #define RGB_DI_PIN C6 | 41 | #define RGB_DI_PIN C6 |
| 42 | #define RGBLIGHT_ANIMATIONS | ||
| 43 | #define RGBLED_NUM 1 // Number of LEDs | 42 | #define RGBLED_NUM 1 // Number of LEDs |
| 43 | #define RGBLIGHT_ANIMATIONS | ||
| 44 | // #ifdef RGB_DI_PIN | ||
| 45 | // #define RGBLIGHT_HUE_STEP 8 | ||
| 46 | // #define RGBLIGHT_SAT_STEP 8 | ||
| 47 | // #define RGBLIGHT_VAL_STEP 8 | ||
| 48 | // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 49 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 50 | // /*== all animations enable ==*/ | ||
| 51 | // #define RGBLIGHT_ANIMATIONS | ||
| 52 | // /*== or choose animations ==*/ | ||
| 53 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 54 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 55 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 56 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 57 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 58 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 59 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 60 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 61 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 62 | // #endif | ||
| 44 | 63 | ||
| 45 | /* COL2ROW or ROW2COL */ | 64 | #define BACKLIGHT_LEVELS 1 // either on/off |
| 46 | #define DIODE_DIRECTION COL2ROW | 65 | #define RGBLIGHT_LIMIT_VAL 200 |
| 47 | 66 | ||
| 48 | /* Set 0 if debouncing isn't needed */ | 67 | /* Set 0 if debouncing isn't needed */ |
| 49 | #define DEBOUNCING_DELAY 5 | 68 | #define DEBOUNCING_DELAY 5 |
| 50 | |||
| 51 | // TODO backlighting | ||
| 52 | #define BACKLIGHT_LEVELS 10 | ||
| 53 | // #define BACKLIGHT_PIN B7 | ||
| 54 | /* | ||
| 55 | Backlight: C2, C7, D5, D6, B0 | ||
| 56 | switch (index) { | ||
| 57 | case 0: | ||
| 58 | PORTC &= ~(1<<PC2); | ||
| 59 | break; | ||
| 60 | case 1: | ||
| 61 | PORTC &= ~(1<<PC7); | ||
| 62 | break; | ||
| 63 | case 2: | ||
| 64 | PORTD &= ~(1<<PD5); | ||
| 65 | break; | ||
| 66 | case 3: | ||
| 67 | PORTD &= ~(1<<PD6); | ||
| 68 | break; | ||
| 69 | case 4: | ||
| 70 | PORTB &= ~(1<<PB0); | ||
| 71 | break; | ||
| 72 | */ | ||
| 73 | |||
| 74 | #endif | ||
