Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set backlight and RGB pins for AVR onekeys #8533

Merged
merged 5 commits into from
Mar 24, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions keyboards/handwired/onekey/blackpill_f401/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@
#define BACKLIGHT_PWM_CHANNEL 1

#define RGB_DI_PIN A1

#define ADC_PIN A0
2 changes: 2 additions & 0 deletions keyboards/handwired/onekey/blackpill_f411/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@
#define BACKLIGHT_PWM_CHANNEL 1

#define RGB_DI_PIN A1

#define ADC_PIN A0
6 changes: 6 additions & 0 deletions keyboards/handwired/onekey/elite_c/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@
#define MATRIX_COL_PINS { F4 }
#define MATRIX_ROW_PINS { F5 }
#define UNUSED_PINS

#define BACKLIGHT_PIN B6

#define RGB_DI_PIN F6

#define ADC_PIN F6
1 change: 0 additions & 1 deletion keyboards/handwired/onekey/keymaps/adc/config.h

This file was deleted.

4 changes: 0 additions & 4 deletions keyboards/handwired/onekey/keymaps/adc/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#include "analog.h"
#include <stdio.h>

#ifndef ADC_PIN
# define ADC_PIN A0
zvecr marked this conversation as resolved.
Show resolved Hide resolved
#endif

enum custom_keycodes {
ADC_SAMPLE = SAFE_RANGE,
};
Expand Down
6 changes: 6 additions & 0 deletions keyboards/handwired/onekey/promicro/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@
#define MATRIX_COL_PINS { F4 }
#define MATRIX_ROW_PINS { F5 }
#define UNUSED_PINS

#define BACKLIGHT_PIN B6

#define RGB_DI_PIN F6

#define ADC_PIN F6
8 changes: 5 additions & 3 deletions keyboards/handwired/onekey/proton_c/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@

#include "config_common.h"

#define MATRIX_COL_PINS { A3 }
#define MATRIX_ROW_PINS { A2 }
#define MATRIX_COL_PINS { A2 }
#define MATRIX_ROW_PINS { A1 }
#define UNUSED_PINS

#define BACKLIGHT_PIN B8
#define BACKLIGHT_PWM_DRIVER PWMD4
#define BACKLIGHT_PWM_CHANNEL 3
#define BACKLIGHT_PAL_MODE 2

#define RGB_DI_PIN A1
#define RGB_DI_PIN A0

#define ADC_PIN A0
6 changes: 6 additions & 0 deletions keyboards/handwired/onekey/teensy_2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@
#define MATRIX_COL_PINS { F4 }
#define MATRIX_ROW_PINS { F5 }
#define UNUSED_PINS

#define BACKLIGHT_PIN B6

#define RGB_DI_PIN F6

#define ADC_PIN F6
10 changes: 8 additions & 2 deletions keyboards/handwired/onekey/teensy_2pp/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

#include "config_common.h"

#define MATRIX_COL_PINS { B2 }
#define MATRIX_ROW_PINS { B1 }
#define MATRIX_COL_PINS { F4 }
#define MATRIX_ROW_PINS { F5 }
#define UNUSED_PINS

#define BACKLIGHT_PIN B6

#define RGB_DI_PIN F6

#define ADC_PIN F6