Rename AdafruitBLE
to BluefruitLE
(#16127)
This commit is contained in:
@@ -137,7 +137,7 @@ enum planck_keycodes {
|
||||
#ifndef FAUXCLICKY_ENABLE
|
||||
FC_TOG,
|
||||
#endif
|
||||
#ifndef MODULE_ADAFRUIT_BLE
|
||||
#ifndef BLUETOOTH_BLUEFRUIT_LE
|
||||
OUT_BT,
|
||||
#endif
|
||||
RGBDEMO,
|
||||
@@ -1261,7 +1261,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
|
||||
void set_output_user(uint8_t output) {
|
||||
#ifdef MODULE_ADAFRUIT_BLE
|
||||
#ifdef BLUETOOTH_BLUEFRUIT_LE
|
||||
switch(output) {
|
||||
case OUTPUT_USB:
|
||||
led_set_output_usb();
|
||||
@@ -1285,7 +1285,7 @@ void matrix_init_user() {
|
||||
#endif
|
||||
|
||||
// auto detect output on init
|
||||
#ifdef MODULE_ADAFRUIT_BLE
|
||||
#ifdef BLUETOOTH_BLUEFRUIT_LE
|
||||
uint8_t output = auto_detect_output();
|
||||
if (output == OUTPUT_USB) {
|
||||
set_output(OUTPUT_USB);
|
||||
|
@@ -140,7 +140,7 @@ enum planck_keycodes {
|
||||
#ifndef FAUXCLICKY_ENABLE
|
||||
FC_TOG,
|
||||
#endif
|
||||
#ifndef MODULE_ADAFRUIT_BLE
|
||||
#ifndef BLUETOOTH_BLUEFRUIT_LE
|
||||
OUT_BT,
|
||||
#endif
|
||||
RGBDEMO,
|
||||
@@ -1264,7 +1264,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
|
||||
void set_output_user(uint8_t output) {
|
||||
#ifdef MODULE_ADAFRUIT_BLE
|
||||
#ifdef BLUETOOTH_BLUEFRUIT_LE
|
||||
switch(output) {
|
||||
case OUTPUT_USB:
|
||||
led_set_output_usb();
|
||||
@@ -1288,7 +1288,7 @@ void matrix_init_user() {
|
||||
#endif
|
||||
|
||||
// auto detect output on init
|
||||
#ifdef MODULE_ADAFRUIT_BLE
|
||||
#ifdef BLUETOOTH_BLUEFRUIT_LE
|
||||
uint8_t output = auto_detect_output();
|
||||
if (output == OUTPUT_USB) {
|
||||
set_output(OUTPUT_USB);
|
||||
|
@@ -3,7 +3,7 @@
|
||||
#include "timer.h"
|
||||
#include "matrix.h"
|
||||
#include "musical_notes.h"
|
||||
#include "adafruit_ble.h"
|
||||
#include "bluefruit_le.h"
|
||||
|
||||
float fauxclicky_pressed_note[2] = MUSICAL_NOTE(_A4, 0.0625);
|
||||
float fauxclicky_released_note[2] = MUSICAL_NOTE(_A4, 0.0625);
|
||||
@@ -12,7 +12,7 @@ float fauxclicky_beep_note[2] = MUSICAL_NOTE(_C6, 0.25);
|
||||
// cubic fit {3.3, 0}, {3.5, 2.9}, {3.6, 5}, {3.7, 8.6}, {3.8, 36}, {3.9, 62}, {4.0, 73}, {4.05, 83}, {4.1, 89}, {4.15, 94}, {4.2, 100}
|
||||
|
||||
uint8_t battery_level(void) {
|
||||
float voltage = adafruit_ble_read_battery_voltage() * 2 * 3.3 / 1024;
|
||||
float voltage = bluefruit_le_read_battery_voltage() * 2 * 3.3 / 1024;
|
||||
if (voltage < MIN_VOLTAGE) return 0;
|
||||
if (voltage > MAX_VOLTAGE) return 255;
|
||||
return (voltage - MIN_VOLTAGE) / (MAX_VOLTAGE - MIN_VOLTAGE) * 255;
|
||||
|
@@ -23,7 +23,7 @@ PS2_MOUSE_ENABLE = yes
|
||||
PS2_USE_INT = yes
|
||||
CUSTOM_MATRIX = yes
|
||||
BLUETOOTH_ENABLE = yes
|
||||
BLUETOOTH_DRIVER = AdafruitBLE
|
||||
BLUETOOTH_DRIVER = BluefruitLE
|
||||
|
||||
SRC += ws2812.c
|
||||
SRC += rgbsps.c
|
||||
|
Reference in New Issue
Block a user