Improve Adafruit BLE configuration defines (#14749)
* Improve Adafruit BLE configuration defines * Formatting
This commit is contained in:
@@ -30,11 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MATRIX_ROWS 4
|
||||
#define MATRIX_COLS 11
|
||||
|
||||
/* AdafruitBle Pin */
|
||||
#define AdafruitBleResetPin D4
|
||||
#define AdafruitBleCSPin B4
|
||||
#define AdafruitBleIRQPin E6
|
||||
|
||||
/*
|
||||
* Keyboard Matrix Assignments
|
||||
*
|
||||
|
@@ -77,7 +77,7 @@ void rgb_matrix_indicators_user(void)
|
||||
|
||||
void sdep_send(const uint8_t *cmd, uint8_t len) {
|
||||
|
||||
spi_start(AdafruitBleCSPin, false, 0, 2);
|
||||
spi_start(ADAFRUIT_BLE_CS_PIN, false, 0, 2);
|
||||
uint8_t cnt = 200;
|
||||
bool ready = false;
|
||||
|
||||
@@ -88,7 +88,7 @@ void sdep_send(const uint8_t *cmd, uint8_t len) {
|
||||
}
|
||||
spi_stop();
|
||||
wait_us(25);
|
||||
spi_start(AdafruitBleCSPin, false, 0, 2);
|
||||
spi_start(ADAFRUIT_BLE_CS_PIN, false, 0, 2);
|
||||
} while (cnt--);
|
||||
|
||||
if (ready) {
|
||||
|
@@ -34,9 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// // right half adafruit feather
|
||||
// #define MATRIX_COL_PINS { F1, F0, B1, B2, B3, D2 }
|
||||
// #define MATRIX_ROW_PINS { D6, B7, B6, B5, D7, C6 }
|
||||
// #define AdafruitBleResetPin D4
|
||||
// #define AdafruitBleCSPin B4
|
||||
// #define AdafruitBleIRQPin E6
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
|
@@ -35,9 +35,6 @@
|
||||
#define ENCODERS_PAD_A { F7 }
|
||||
#define ENCODERS_PAD_B { F6 }
|
||||
#define ENCODER_RESOLUTION 4
|
||||
#define AdafruitBleResetPin D4
|
||||
#define AdafruitBleCSPin B4
|
||||
#define AdafruitBleIRQPin E6
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* RGB Light Configuration */
|
||||
|
@@ -60,7 +60,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/* Set 0 if debouncing isn't needed */
|
||||
#define DEBOUNCE 0
|
||||
|
||||
#define AdafruitBleResetPin D4
|
||||
#define AdafruitBleCSPin B4
|
||||
#define AdafruitBleIRQPin E6
|
||||
|
@@ -21,8 +21,4 @@
|
||||
#define MATRIX_COL_PINS { C7, D6, B7, B6, F0, D2, D3, F1, F4, F5, F6, F7 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
#define AdafruitBleResetPin D4
|
||||
#define AdafruitBleCSPin B4
|
||||
#define AdafruitBleIRQPin E6
|
||||
|
||||
#define VIA_HAS_BROKEN_KEYCODES
|
||||
|
@@ -65,9 +65,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define QMK_ESC_INPUT D7 // usually ROW
|
||||
|
||||
/* Bluetooth */
|
||||
#define AdafruitBleResetPin D4
|
||||
#define AdafruitBleCSPin B4
|
||||
#define AdafruitBleIRQPin E6
|
||||
#define BATTERY_LEVEL_PIN B6
|
||||
|
||||
#define VIA_HAS_BROKEN_KEYCODES
|
||||
|
Reference in New Issue
Block a user