1
0
Fork 0

Set backlight and RGB pins for AVR onekeys (#8533)

* Set backlight and RGB pins for AVR onekeys

* Set pin for ADC as well

* Define ADC_PIN for F4 blackpills

* Use A0 for F4 ADCs

* Set ADC pins for F0 and F1
This commit is contained in:
Ryan 2020-03-24 14:32:23 +11:00 committed by GitHub
parent 8f69983c58
commit 297aad6ebd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 39 additions and 10 deletions

View file

@ -27,3 +27,5 @@
#define BACKLIGHT_PWM_CHANNEL 1 #define BACKLIGHT_PWM_CHANNEL 1
#define RGB_DI_PIN A1 #define RGB_DI_PIN A1
#define ADC_PIN A0

View file

@ -27,3 +27,5 @@
#define BACKLIGHT_PWM_CHANNEL 1 #define BACKLIGHT_PWM_CHANNEL 1
#define RGB_DI_PIN A1 #define RGB_DI_PIN A1
#define ADC_PIN A0

View file

@ -27,3 +27,5 @@
#define BACKLIGHT_PWM_CHANNEL 1 #define BACKLIGHT_PWM_CHANNEL 1
#define RGB_DI_PIN A1 #define RGB_DI_PIN A1
#define ADC_PIN A0

View file

@ -21,3 +21,9 @@
#define MATRIX_COL_PINS { F4 } #define MATRIX_COL_PINS { F4 }
#define MATRIX_ROW_PINS { F5 } #define MATRIX_ROW_PINS { F5 }
#define UNUSED_PINS #define UNUSED_PINS
#define BACKLIGHT_PIN B6
#define RGB_DI_PIN F6
#define ADC_PIN F6

View file

@ -1 +0,0 @@
#pragma once

View file

@ -2,10 +2,6 @@
#include "analog.h" #include "analog.h"
#include <stdio.h> #include <stdio.h>
#ifndef ADC_PIN
# define ADC_PIN A0
#endif
enum custom_keycodes { enum custom_keycodes {
ADC_SAMPLE = SAFE_RANGE, ADC_SAMPLE = SAFE_RANGE,
}; };

View file

@ -21,3 +21,9 @@
#define MATRIX_COL_PINS { F4 } #define MATRIX_COL_PINS { F4 }
#define MATRIX_ROW_PINS { F5 } #define MATRIX_ROW_PINS { F5 }
#define UNUSED_PINS #define UNUSED_PINS
#define BACKLIGHT_PIN B6
#define RGB_DI_PIN F6
#define ADC_PIN F6

View file

@ -18,8 +18,8 @@
#include "config_common.h" #include "config_common.h"
#define MATRIX_COL_PINS { A3 } #define MATRIX_COL_PINS { A2 }
#define MATRIX_ROW_PINS { A2 } #define MATRIX_ROW_PINS { A1 }
#define UNUSED_PINS #define UNUSED_PINS
#define BACKLIGHT_PIN B8 #define BACKLIGHT_PIN B8
@ -27,4 +27,6 @@
#define BACKLIGHT_PWM_CHANNEL 3 #define BACKLIGHT_PWM_CHANNEL 3
#define BACKLIGHT_PAL_MODE 2 #define BACKLIGHT_PAL_MODE 2
#define RGB_DI_PIN A1 #define RGB_DI_PIN A0
#define ADC_PIN A0

View file

@ -28,3 +28,5 @@
#define BACKLIGHT_PAL_MODE 0 #define BACKLIGHT_PAL_MODE 0
#define RGB_DI_PIN B15 #define RGB_DI_PIN B15
#define ADC_PIN A0

View file

@ -21,3 +21,9 @@
#define MATRIX_COL_PINS { F4 } #define MATRIX_COL_PINS { F4 }
#define MATRIX_ROW_PINS { F5 } #define MATRIX_ROW_PINS { F5 }
#define UNUSED_PINS #define UNUSED_PINS
#define BACKLIGHT_PIN B6
#define RGB_DI_PIN F6
#define ADC_PIN F6

View file

@ -18,6 +18,12 @@
#include "config_common.h" #include "config_common.h"
#define MATRIX_COL_PINS { B2 } #define MATRIX_COL_PINS { F4 }
#define MATRIX_ROW_PINS { B1 } #define MATRIX_ROW_PINS { F5 }
#define UNUSED_PINS #define UNUSED_PINS
#define BACKLIGHT_PIN B6
#define RGB_DI_PIN F6
#define ADC_PIN F6