#I2C QT Rotary Encoder Changing variables it shouldn't

1 messages · Page 1 of 1 (latest)

west ferry
#

So my code below seems to only increment 1 value and also seems to reassign variables? Confused why that would happen.

Using a single Neopixel LED, I2C QT Rotary Encoder, and the buttons on a 128x64 OLED featherwing.

polar musk
#

in your if statements, you're using = (assignment) instead of == (testing for equal)

raven yew
#

Ahh yep! That will get you every time!

west ferry
#

UGHHHHH hi yes thank you

#

I am new at this and forgetting to use == was what tripped up my last project too

west ferry
polar musk