aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mechlovin/infinity87/rev2/rev2.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mechlovin/infinity87/rev2/rev2.c')
-rw-r--r--keyboards/mechlovin/infinity87/rev2/rev2.c38
1 files changed, 1 insertions, 37 deletions
diff --git a/keyboards/mechlovin/infinity87/rev2/rev2.c b/keyboards/mechlovin/infinity87/rev2/rev2.c
index dfaa27d03..ab9ecbf6f 100644
--- a/keyboards/mechlovin/infinity87/rev2/rev2.c
+++ b/keyboards/mechlovin/infinity87/rev2/rev2.c
@@ -14,40 +14,4 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#include "rev2.h" 17#include "rev2.h" \ No newline at end of file
18
19void led_init_ports(void) {
20 setPinOutput(A5);
21 setPinOutput(A6);
22 setPinOutput(A7);
23 setPinOutput(C7);
24 setPinOutput(C6);
25
26}
27
28layer_state_t layer_state_set_kb(layer_state_t state) {
29 state = layer_state_set_user(state);
30 writePinHigh(C6);
31 writePinHigh(C7);
32 writePinHigh(A7);
33 writePinHigh(A6);
34 writePinHigh(A5);
35 switch (get_highest_layer(state)) {
36 case 0:
37 writePinLow(C6);
38 break;
39 case 1:
40 writePinLow(C7);
41 break;
42 case 2:
43 writePinLow(A7);
44 break;
45 case 3:
46 writePinLow(A6);
47 break;
48 case 4:
49 writePinLow(A5);
50 break;
51 }
52 return state;
53}