summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/.gitignore5
-rw-r--r--app/build_left.bat1
-rw-r--r--app/flash.bat2
-rw-r--r--app/prj.conf23
4 files changed, 27 insertions, 4 deletions
diff --git a/app/.gitignore b/app/.gitignore
index 73a4457..d163863 100644
--- a/app/.gitignore
+++ b/app/.gitignore
@@ -1,4 +1 @@
-build/
-build_left.bat
-flash.bat
-prj.conf \ No newline at end of file
+build/ \ No newline at end of file
diff --git a/app/build_left.bat b/app/build_left.bat
new file mode 100644
index 0000000..f9d9150
--- /dev/null
+++ b/app/build_left.bat
@@ -0,0 +1 @@
+west build -p -- -DSHIELD=lily58_left \ No newline at end of file
diff --git a/app/flash.bat b/app/flash.bat
new file mode 100644
index 0000000..241b5b6
--- /dev/null
+++ b/app/flash.bat
@@ -0,0 +1,2 @@
+timeout 10
+copy "C:\Users\Kevin\zmk\app\build\zephyr\zmk.uf2" D: \ No newline at end of file
diff --git a/app/prj.conf b/app/prj.conf
new file mode 100644
index 0000000..c82fc5d
--- /dev/null
+++ b/app/prj.conf
@@ -0,0 +1,23 @@
+# Turn on logging, and set ZMK logging to debug output
+CONFIG_LOG=y
+CONFIG_ZMK_LOG_LEVEL_DBG=y
+
+# Turn on USB CDC ACM device
+CONFIG_USB=y
+CONFIG_USB_DEVICE_STACK=y
+CONFIG_USB_CDC_ACM=y
+CONFIG_USB_CDC_ACM_RINGBUF_SIZE=1024
+CONFIG_USB_CDC_ACM_DEVICE_NAME="CDC_ACM"
+CONFIG_USB_CDC_ACM_DEVICE_COUNT=1
+
+# Enable serial console
+CONFIG_SERIAL=y
+CONFIG_CONSOLE=y
+CONFIG_UART_INTERRUPT_DRIVEN=y
+CONFIG_UART_LINE_CTRL=y
+
+# Enable USB UART, and set the console device
+CONFIG_UART_CONSOLE=y
+CONFIG_USB_UART_CONSOLE=y
+CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM_0"
+CONFIG_USB_UART_DTR_WAIT=n \ No newline at end of file