Hi,
I am using the Qwiic Twist Rotary Encoder. The first time I ordered it and used it, all was working as intended. However, eventually the “SetColor” function in the library stopped working. The other functions were working fine, such as “isClicked” and" getDiff". I wondered if the LED circuit in the encoder had somehow been broken, but upon removing the encoder from the board and testing the LEDs individually, the LEDs in the encoder still worked.
To troubleshoot I used the “BasicReadings” example in the Qwiic Twist Library. This worked completely fine. I then added “setColor” to the setup portion of the code and instead of showing the encoder readings along with the encoder LEDs displaying the desired color, the Serial monitor printed a few garbage values like “?.” It also froze the program and prevented it from proceeding to the loop where the encoder values would be displayed.
I ordered another Qwiic Twist encoder and all worked as intended at first. However, once again the “setColor” function stopped working. I went through the same troubleshooting steps as described above ands got the same results. I am wondering if this has happened before with the Qwiic Twist, if there are any known solutions I should look for, or if there is anything I could be doing that could be causing this issue. It seems to be a hardware problem because none of the code was changed before the function stopped working.
Thank you