Using a Nextion and want to use the gauge option. I can not figure out how to change the start point so I was wondering if anybody knows how to remap 0-360. I need to change 0->90, 90->180, etc.
thanks
Using a Nextion and want to use the gauge option. I can not figure out how to change the start point so I was wondering if anybody knows how to remap 0-360. I need to change 0->90, 90->180, etc.
thanks
You just add 90 and then take the modulo 360 of that.
angle = (angle + 90) % 360;
Well I learned something new.
Thanks.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.