diff options
author | Ryan <fauxpark@gmail.com> | 2021-09-04 02:09:30 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-03 17:09:30 +0100 |
commit | 8574bf20d35b21c7b44ba8550fa11b4d100fdbbd (patch) | |
tree | d2492bc01a53343a1f86e7f49d85726686e3f6f1 /keyboards/lfkeyboards/mini1800 | |
parent | a01057d19dfa208fcf5c7cd16689257cb41ac79b (diff) |
Remove more cruft in keyboard files (#14288)
Diffstat (limited to 'keyboards/lfkeyboards/mini1800')
-rw-r--r-- | keyboards/lfkeyboards/mini1800/mini1800.c | 4 | ||||
-rw-r--r-- | keyboards/lfkeyboards/mini1800/mini1800.h | 14 |
2 files changed, 2 insertions, 16 deletions
diff --git a/keyboards/lfkeyboards/mini1800/mini1800.c b/keyboards/lfkeyboards/mini1800/mini1800.c index d5f4193c1d..4c897ac693 100644 --- a/keyboards/lfkeyboards/mini1800/mini1800.c +++ b/keyboards/lfkeyboards/mini1800/mini1800.c @@ -37,8 +37,8 @@ void matrix_init_kb(void) set_rgb(32, 0xFF, 0x00, 0x00); // Layer indicator, start red #ifndef AUDIO_ENABLE // If we're not using the audio pin, drive it low - sbi(DDRC, 6); - cbi(PORTC, 6); + setPinOutput(C6); + writePinLow(C6); #endif _delay_ms(500); #ifdef ISSI_ENABLE diff --git a/keyboards/lfkeyboards/mini1800/mini1800.h b/keyboards/lfkeyboards/mini1800/mini1800.h index 17f7da3483..c007d7f76a 100644 --- a/keyboards/lfkeyboards/mini1800/mini1800.h +++ b/keyboards/lfkeyboards/mini1800/mini1800.h @@ -1,24 +1,10 @@ #ifndef LFK87_H #define LFK87_H -/* if the kb.h file exists (because we're running from qmkbuilder) include it */ -#if __has_include("kb.h") -#include "kb.h" -#endif - #include "quantum.h" #include "matrix.h" #include <avr/sfr_defs.h> -#ifndef cbi -#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) -#endif - -#ifndef sbi -#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) -#endif - - typedef struct RGB_Color { uint16_t red; uint16_t green; |