Some initial BEL HoG support.
This commit is contained in:
parent
04fe57d3a3
commit
73bea6218e
13 changed files with 523 additions and 160 deletions
11
src/main.c
11
src/main.c
|
|
@ -10,20 +10,21 @@
|
|||
|
||||
#include "zmk.h"
|
||||
#include "kscan.h"
|
||||
#include "usb_hid.h"
|
||||
#include "endpoints.h"
|
||||
|
||||
#define ZMK_KSCAN_DEV DT_LABEL(ZMK_MATRIX_NODE_ID)
|
||||
|
||||
void main(void)
|
||||
{
|
||||
printk("Welcome to ZMK!\n");
|
||||
|
||||
if (zmk_kscan_init(ZMK_KSCAN_DEV) != 0) {
|
||||
printk("Keyboard Scan Init Failed\n");
|
||||
if (zmk_kscan_init(ZMK_KSCAN_DEV) != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (zmk_usb_hid_init() < 0) {
|
||||
printk("USB HID Init Failed\n");
|
||||
if (zmk_endpoints_init())
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue