Compare commits

..

No commits in common. "16b47df18b3249c9bfb86230a7705a94963d552e" and "cf5bc2a26e6568abbbfff78164411bd711c32f44" have entirely different histories.

4 changed files with 93 additions and 27 deletions

View file

@ -4,27 +4,6 @@
Need to have the `zmk-config` directory mounted at `/workspaces/zmk-config` in Docker container
## git commit linting setup
Issue 575 on GitHub
``` sh
# cd /path/to/zmk
npm install --save-dev @commitlint/{cli,config-conventional}
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js
npm install --save-dev husky@next
npm install pinst --save-dev
npx husky install
npx husky add .husky/commit-msg "npx --no-install commitlint --edit $1"
npx commitlint --from HEAD~1 --to HEAD --verbose
touch foo
git commit -m "foo: this will fail"
git commit -m "chore: lint on commitmsg"
git reset HEAD~1
rm foo
```
## Building
``` sh

View file

@ -21,5 +21,34 @@ CONFIG_ZMK_IDLE_TIMEOUT=15000
# Save settings after 10s instaed of 60s
#CONFIG_ZMK_SETTINGS_SAVE_DEBOUNCE=10000
# Add debug logging
CONFIG_ZMK_USB_LOGGING=y
################################################################################
# Debugging
################################################################################
# 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"
# Sensor logging
CONFIG_SENSOR_LOG_LEVEL_DBG=y
#CONFIG_SENSOR_LOG_LEVEL=4
CONFIG_SENSOR_INIT_PRIORITY=90

View file

@ -10,5 +10,34 @@ CONFIG_ZMK_IDLE_TIMEOUT=15000
# Save settings after 10s instaed of 60s
#CONFIG_ZMK_SETTINGS_SAVE_DEBOUNCE=10000
# Add debug logging
CONFIG_ZMK_USB_LOGGING=y
################################################################################
# Debugging
################################################################################
# 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"
# Sensor logging
CONFIG_SENSOR_LOG_LEVEL_DBG=y
#CONFIG_SENSOR_LOG_LEVEL=4
CONFIG_SENSOR_INIT_PRIORITY=90

View file

@ -22,5 +22,34 @@ CONFIG_ZMK_IDLE_TIMEOUT=15000
# Save settings after 10s instaed of 60s
#CONFIG_ZMK_SETTINGS_SAVE_DEBOUNCE=10000
# Add debug logging
CONFIG_ZMK_USB_LOGGING=y
################################################################################
# Debugging
################################################################################
# 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"
# Sensor logging
CONFIG_SENSOR_LOG_LEVEL_DBG=y
#CONFIG_SENSOR_LOG_LEVEL=4
CONFIG_SENSOR_INIT_PRIORITY=90