[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:
parent
c8da63382c
commit
45b35e6ea1
6 changed files with 192 additions and 255 deletions
|
@ -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"
|
Loading…
Add table
Add a link
Reference in a new issue