Move encoder config to data driven (#19923)

Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
Ryan
2023-02-26 09:45:12 +11:00
committed by GitHub
parent 314f6c1ddb
commit 7e0299117b
972 changed files with 2898 additions and 2569 deletions

View File

@@ -40,7 +40,7 @@
}
},
"encoder": {
"rotary": [{ "pin_a": "GP7", "pin_b": "GP7" }]
"rotary": [{ "pin_a": "GP7", "pin_b": "GP7", "resolution": 4 }]
},
"usb": {
"device_version": "1.0.0",

View File

@@ -16,7 +16,4 @@
# ifndef ENCODER_MAP_KEY_DELAY
# define ENCODER_MAP_KEY_DELAY 2
# endif
# ifndef ENCODER_RESOLUTION
# define ENCODER_RESOLUTION 4
# endif
#endif