From a74808f026b008240fd3c6ded6295d4c024d499e Mon Sep 17 00:00:00 2001 From: kenji Date: Sat, 23 Aug 2025 15:11:22 -0400 Subject: [PATCH] update README for LDR customization --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ce12e1..cbb86cb 100644 --- a/README.md +++ b/README.md @@ -54,13 +54,15 @@ and connect the keyboard to the female USB port and insert the male USB connector of the device into your host device such as PC. If you wish to change the ADC reading threshold for changing the lighting, -you can do so in the `get_light` function of [hyperx_elite2.c](hyperx_elite2.c). +you can do so by changing the values of `LDR_OFF_THRESHOLD` and +`LDR_ON_THRESHOLD` in [hyperx_elite2.h](hyperx_elite2.h). You can change the color used in the two different modes inside the `rgb_task` function of [hyperx_elite2.c](hyperx_elite2.c). If you used a different ADC pin than ADC2, you can change the selected ADC pin -in the `startADC` function of [hyperx_elite2.c](hyperx_elite2.c). +and ADC channel by changing `LDR_PIN` and `LDR_ADC` +[hyperx_elite2.h](hyperx_elite2.h). For any of the changes above, you will need to modify the [CMakeLists.txt](CMakeLists.txt) file and compile the program yourself. You