Conversation
|
Hello, Thank you for you PR. Il will try to review it after the release of the next Rivalcfg version (I do not want to delay it) :). Just a few remark/question:
|
|
The Rival 5 has a LED strip which needs setting all of its LED values in one go and it's not possible to read out previous LED strip values, so sadly it's not possible to set each LED color separately. I've removed the section from the README and added use of the TrueMove Air sensor conversion table. |
|
Ok, thank you for your response! Do not forget to remove changes in range.py :) |
|
Ok, range.py changes are now reverted |
|
I am still thinking it is possible to set LEDs colors one by one. the I am trying to get more info about this and I will tell you :) |
|
You are right, the 2 bytes after the 0x21 command is a LED bit mask and the device will only change those colors which are selected by the bits. I've added commands to change LED colors individually. |
|
Hello, Sorry for the time it took me, I here is the review! :) handlerAs it is possible to set individually each LED color, I think it is better to remove the
To achieve this, can you tell me if one of the following work (the test is both to confirm it could work and to check if the flags are Little Endian or Big Endian): "color_test1": {
"label": "",
"description": "",
"cli": ["--color-test1"],
"command": [
0x21, 0x02, 0x00, # "Command" (cmd + flags LE)
0x00, 0x00, 0x00, # "Padding for LED1
],
"value_type": "rgbcolor",
"default": "#FF1800"
},
"color_test2": {
"label": "",
"description": "",
"cli": ["--color-test2"],
"command": [
0x21, 0x00, 0x02, # "Command" (cmd + flags BE)
0x00, 0x00, 0x00, # "Padding for LED1
],
"value_type": "rgbcolor",
"default": "#FF1800"
},test it with commands like: One of the command should change the color of the LED2 (see schema bellow) to the requested color (the other one may turn it black). CLI options namingFor the naming of the CLI options we must keep the coherence with other devices so we will use the naming schema of the Rival600 ( https://flozz.github.io/rivalcfg/devices/rival600.html ) For logo and wheel we keep consistency from Rival 600 for the
I hope i made no mistake, do not hesitate to tell me if something is wrong! :) |

No description provided.