Update tidbit sources to match outbound PR on GitHub

This commit is contained in:
kemonine 2020-11-16 19:17:48 -05:00
parent b5dd2bec95
commit 8da57c50be
5 changed files with 40 additions and 6 deletions

View File

@ -45,10 +45,6 @@
#define RGBLED_NUM 8
#define RGBLIGHT_ANIMATIONS
/* Optional encoder pins */
//#define ENCODERS_PAD_A { B5, B3 }
//#define ENCODERS_PAD_B { B4, B2 }
/* Additional optional encoder pins */
// #define ENCODERS_PAD_A { D1, D0 } //Can only be used if I2C is not used
// #define ENCODERS_PAD_B { D3, D2 } //Can only be used if serial (exp) is not used

View File

@ -0,0 +1,19 @@
/* Copyright 2020 Jay Greco
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define ENCODERS_PAD_A { B2 }
#define ENCODERS_PAD_B { B3 }

View File

@ -96,5 +96,5 @@ void led_set_kb(uint8_t usb_led) {
if (usb_led & (1<<USB_LED_NUM_LOCK))
set_bitc_LED(LED_ON);
else
set_bitc_LED(LED_OFF);
set_bitc_LED(LED_DIM);
}

View File

@ -104,7 +104,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
void led_set_kb(uint8_t usb_led) {
if (usb_led & (1<<USB_LED_NUM_LOCK))
set_bitc_LED(LED_ON);
set_bitc_LED(LED_DIM);
else
set_bitc_LED(LED_OFF);
}

View File

@ -0,0 +1,19 @@
/* Copyright 2020 Jay Greco
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define ENCODERS_PAD_A { B2 }
#define ENCODERS_PAD_B { B3 }