Skip to content

Commit

Permalink
enable CONFIG_PMW3610_SMART_ALGORITHM
Browse files Browse the repository at this point in the history
  • Loading branch information
280Zo committed Oct 30, 2024
1 parent a40ea71 commit fe4f24c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
17 changes: 4 additions & 13 deletions config/charybdis.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y
## Power Management Config
## https://zmk.dev/docs/config/power
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_IDLE_TIMEOUT=30000
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=600000
CONFIG_ZMK_PM_SOFT_OFF=n
CONFIG_ZMK_EXT_POWER=n
# CONFIG_ZMK_IDLE_TIMEOUT=30000
# CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=600000
CONFIG_ZMK_EXT_POWER=y
## https://docs.zephyrproject.org/2.7.5/reference/kconfig/CONFIG_PM_DEVICE.html
CONFIG_PM_DEVICE=y

Expand All @@ -27,12 +26,4 @@ CONFIG_ZMK_MOUSE=y
## Include input subsystem and drivers in the system config
## https://github.com/badjeff/zmk-pmw3610-driver
## https://github.com/badjeff/zmk-split-peripheral-input-relay
CONFIG_INPUT=y

## TODO - Testing
CONFIG_BT_BUF_ACL_TX_COUNT=32

CONFIG_BT_PERIPHERAL_PREF_MAX_INT=9
CONFIG_BT_PERIPHERAL_PREF_LATENCY=16
CONFIG_BT_BUF_ACL_TX_COUNT=32
CONFIG_BT_L2CAP_TX_BUF_COUNT=32
CONFIG_INPUT=y
10 changes: 6 additions & 4 deletions config/charybdis_right.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
## https://github.com/badjeff/zmk-pmw3610-driver
CONFIG_SPI=y
CONFIG_PMW3610=y
#CONFIG_SPI_LOG_LEVEL_DBG=y

## https://github.com/badjeff/zmk-pmw3610-driver/blob/main/src/pmw3610.c
CONFIG_PMW3610_SMART_ALGORITHM=y

CONFIG_PMW3610_SWAP_XY=y
CONFIG_PMW3610_INVERT_X=y
CONFIG_PMW3610_INVERT_Y=y
#CONFIG_PMW3610_REPORT_INTERVAL_MIN=12
CONFIG_PMW3610_REPORT_INTERVAL_MIN=12

CONFIG_PMW3610_REST1_SAMPLE_TIME_MS=100
CONFIG_PMW3610_REST2_SAMPLE_TIME_MS=200
CONFIG_PMW3610_REST3_SAMPLE_TIME_MS=300
CONFIG_PMW3610_RUN_DOWNSHIFT_TIME_MS=2000
CONFIG_PMW3610_REST1_DOWNSHIFT_TIME_MS=3000
CONFIG_PMW3610_REST2_DOWNSHIFT_TIME_MS=30000

#CONFIG_SPI_LOG_LEVEL_DBG=y
CONFIG_PMW3610_REST2_DOWNSHIFT_TIME_MS=30000

0 comments on commit fe4f24c

Please sign in to comment.