Browse Source

fantastic60: Implement exclusive TP mode and BL mode

fantastic60
Kai Ryu 8 years ago
parent
commit
4b55e0fc9f
2 changed files with 7 additions and 1 deletions
  1. 0
    1
      keyboard/fantastic60/backlight.c
  2. 7
    0
      keyboard/fantastic60/matrix.c

+ 0
- 1
keyboard/fantastic60/backlight.c View File

@@ -35,7 +35,6 @@ static const uint8_t backlight_table[] PROGMEM = {

void backlight_set(uint8_t level)
{
softpwm_led_enable();
#ifdef BREATHING_LED_ENABLE
switch (level) {
case 1:

+ 7
- 0
keyboard/fantastic60/matrix.c View File

@@ -30,6 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#endif
#include "matrix.h"
#include "rgb.h"
#include "softpwm_led.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
@@ -81,9 +82,15 @@ void matrix_init(void)
_delay_us(30); // without this wait read unstable value.
if ((PINC & (1<<PC7)) == 0) {
ps2_mouse_enabled = 1;
#ifdef SOFTPWM_LED_ENABLE
softpwm_led_disable();
#endif
}
else {
ps2_mouse_enabled = 0;
#ifdef SOFTPWM_LED_ENABLE
softpwm_led_enable();
#endif
}
PORTC &= ~(1<<PC7);
#endif