1
0
Fork 0

[Keyboard] Update Infinity87 rev. 2 (#14820)

Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
mechlovin 2021-11-05 05:08:40 +07:00 committed by GitHub
parent c8da63382c
commit 45b35e6ea1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 192 additions and 255 deletions

View file

@ -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"