diff options
author | mechlovin <57231893+mechlovin@users.noreply.github.com> | 2021-11-05 05:08:40 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 15:08:40 -0700 |
commit | 45b35e6ea13d8c184d9cbd23e4bd3868e66d2933 (patch) | |
tree | a192e8d9b8cfeca6b95db495c6fde7b064bc759c /keyboards/mechlovin/infinity87/rev2/rev2.c | |
parent | c8da63382c7d2cc0de13559c10b5fde0f436f9e3 (diff) |
[Keyboard] Update Infinity87 rev. 2 (#14820)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/mechlovin/infinity87/rev2/rev2.c')
-rw-r--r-- | keyboards/mechlovin/infinity87/rev2/rev2.c | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/keyboards/mechlovin/infinity87/rev2/rev2.c b/keyboards/mechlovin/infinity87/rev2/rev2.c index dfaa27d036..ab9ecbf6fc 100644 --- a/keyboards/mechlovin/infinity87/rev2/rev2.c +++ b/keyboards/mechlovin/infinity87/rev2/rev2.c @@ -14,40 +14,4 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "rev2.h" - -void led_init_ports(void) { - setPinOutput(A5); - setPinOutput(A6); - setPinOutput(A7); - setPinOutput(C7); - setPinOutput(C6); - -} - -layer_state_t layer_state_set_kb(layer_state_t state) { - state = layer_state_set_user(state); - writePinHigh(C6); - writePinHigh(C7); - writePinHigh(A7); - writePinHigh(A6); - writePinHigh(A5); - switch (get_highest_layer(state)) { - case 0: - writePinLow(C6); - break; - case 1: - writePinLow(C7); - break; - case 2: - writePinLow(A7); - break; - case 3: - writePinLow(A6); - break; - case 4: - writePinLow(A5); - break; - } - return state; -} +#include "rev2.h"
\ No newline at end of file |