Remap 0-360 for a gauge

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;
1 Like

Well I learned something new.
Thanks.