aboutsummaryrefslogtreecommitdiff
path: root/keyboards/duck/orion/v3/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/duck/orion/v3/matrix.c')
-rw-r--r--keyboards/duck/orion/v3/matrix.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/keyboards/duck/orion/v3/matrix.c b/keyboards/duck/orion/v3/matrix.c
index 3c3240b9f..f93c7a9cd 100644
--- a/keyboards/duck/orion/v3/matrix.c
+++ b/keyboards/duck/orion/v3/matrix.c
@@ -14,13 +14,7 @@ You should have received a copy of the GNU General Public License
14along with this program. If not, see <http://www.gnu.org/licenses/>. 14along with this program. If not, see <http://www.gnu.org/licenses/>.
15*/ 15*/
16 16
17#include <util/delay.h> 17#include "quantum.h"
18#include <avr/io.h>
19#include <stdio.h>
20#include "matrix.h"
21#include "util.h"
22#include "print.h"
23#include "debug.h"
24 18
25static uint8_t debouncing = DEBOUNCE; 19static uint8_t debouncing = DEBOUNCE;
26 20
@@ -54,18 +48,23 @@ void matrix_scan_user(void) {
54 48
55void backlight_init_ports(void) 49void backlight_init_ports(void)
56{ 50{
57 DDRD |= 0b11010000; 51
58 PORTD &= ~0b01010000; 52}
59 PORTD |= 0b10000000; 53
60 DDRB |= 0b00011111; 54void indicator_init_ports(void) {
61 PORTB &= ~0b00001110; 55
62 PORTB |= 0b00010001; 56 // Num LED
63 DDRE |= 0b01000000; 57 setPinOutput(B4);
64 PORTE &= ~0b01000000; 58
59 // Caps Lock
60 setPinOutput(B0);
61
62 // Scroll Lock
63 setPinOutput(D7);
65} 64}
66 65
67void matrix_init(void) { 66void matrix_init(void) {
68 backlight_init_ports(); 67 indicator_init_ports();
69 unselect_cols(); 68 unselect_cols();
70 init_rows(); 69 init_rows();
71 70