]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/sixshooter/sixshooter.h
Added VIA Configurator support to Snagpad (#4890)
[qmk_firmware.git] / keyboards / sixshooter / sixshooter.h
1 #ifndef SIXSHOOTER_H
2 #define SIXSHOOTER_H
3
4 #include "quantum.h"
5
6 #define LAYOUT( \
7         K00, K01, K02, \
8         K03, K04, K05 \
9 ) { \
10         { K00, K01, K02, K03, K04, K05 }, \
11 }
12
13 inline void sixshooter_led_0_on(void)    { DDRB |=  (1<<6); PORTB |=  (1<<6); }
14 inline void sixshooter_led_1_on(void)    { DDRC |=  (1<<7); PORTC |=  (1<<7); }
15 inline void sixshooter_led_2_on(void)    { DDRD |=  (1<<0); PORTD |=  (1<<0); }
16 inline void sixshooter_led_3_on(void)    { DDRB |=  (1<<5); PORTB |=  (1<<5); }
17 inline void sixshooter_led_4_on(void)    { DDRD |=  (1<<7); PORTD |=  (1<<7); }
18 inline void sixshooter_led_5_on(void)    { DDRB |=  (1<<7); PORTB |=  (1<<7); }
19
20 inline void sixshooter_led_0_off(void)   { DDRB &= ~(1<<6); PORTB &= ~(1<<6); }
21 inline void sixshooter_led_1_off(void)   { DDRC &= ~(1<<7); PORTC &= ~(1<<7); }
22 inline void sixshooter_led_2_off(void)   { DDRD &= ~(1<<0); PORTD &= ~(1<<0); }
23 inline void sixshooter_led_3_off(void)   { DDRB &= ~(1<<5); PORTB &= ~(1<<5); }
24 inline void sixshooter_led_4_off(void)   { DDRD &= ~(1<<7); PORTD &= ~(1<<7); }
25 inline void sixshooter_led_5_off(void)   { DDRB &= ~(1<<7); PORTB &= ~(1<<7); }
26
27 inline void sixshooter_led_all_on(void) {
28   sixshooter_led_0_on();
29   sixshooter_led_1_on();
30   sixshooter_led_2_on();
31   sixshooter_led_3_on();
32   sixshooter_led_4_on();
33   sixshooter_led_5_on();
34 }
35 inline void sixshooter_led_all_off(void) {
36   sixshooter_led_0_off();
37   sixshooter_led_1_off();
38   sixshooter_led_2_off();
39   sixshooter_led_3_off();
40   sixshooter_led_4_off();
41   sixshooter_led_5_off();
42 }
43
44 #endif