update README for LDR customization

This commit is contained in:
2025-08-23 15:11:22 -04:00
parent 0aebadf829
commit a74808f026
+4 -2
View File
@@ -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. connector of the device into your host device such as PC.
If you wish to change the ADC reading threshold for changing the lighting, 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` You can change the color used in the two different modes inside the `rgb_task`
function of [hyperx_elite2.c](hyperx_elite2.c). function of [hyperx_elite2.c](hyperx_elite2.c).
If you used a different ADC pin than ADC2, you can change the selected ADC pin 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 For any of the changes above, you will need to modify the
[CMakeLists.txt](CMakeLists.txt) file and compile the program yourself. You [CMakeLists.txt](CMakeLists.txt) file and compile the program yourself. You