BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: CMD_ARC  (Read 349 times)

Rudolph

  • Sr. Member
  • ****
  • Posts: 429
    • View Profile
CMD_ARC
« on: December 11, 2024, 05:49:19 PM »

The BT82X Series Programming Guide 1.0 is released. :-)
I only saw it two days ago and I did not really have much time for it so far though.

One thing, I found CMD_ARC, nice.
But, this is the description:
"The arc command draws a circular arc. The end caps of the arc are rounded. If the angles specify a complete circle, a disc is drawn."

Is that correct? So not a circle, but a a fully filled round area like with POINTS?

void cmd_arc( int16_t x, int16_t y, unint16_t r0, unint16_t r1, uint16_t a0, uint16_t a1 );

That u*n*int16_t is an interesting typo. :-)

But more importantly, why is the inner and out radius limited to 1..511?
Hmm, yes, radius, not diameter, so quite big - but still, no flat arc over the complete height of the display for example.

And is there any way to influence the roundness of the end caps?
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 788
    • View Profile
Re: CMD_ARC
« Reply #1 on: December 12, 2024, 04:58:59 PM »

Hello,

Thank you for your quesitons!

"The arc command draws a circular arc. The end caps of the arc are rounded. If the angles specify a complete circle, a disc is drawn."

Is that correct? So not a circle, but a a fully filled round area like with POINTS?

No, the circle will not be fully filled in in the case of a complete circle being specified in the command.


void cmd_arc( int16_t x, int16_t y, unint16_t r0, unint16_t r1, uint16_t a0, uint16_t a1 );

That u*n*int16_t is an interesting typo. :-)

But more importantly, why is the inner and out radius limited to 1..511?
Hmm, yes, radius, not diameter, so quite big - but still, no flat arc over the complete height of the display for example.

And is there any way to influence the roundness of the end caps?

Unfortunately there is no way to alter the end cap roundness with the CMD_ARC command out width adjusting the individual radius values in the command. On the max radius point, i will double check with the developers as to why the maximum limit is 511 for these values.

Best Regards,
BRT Community
Logged

Rudolph

  • Sr. Member
  • ****
  • Posts: 429
    • View Profile
Re: CMD_ARC
« Reply #2 on: December 12, 2024, 05:15:41 PM »

This is one of these posts I could have reacted on with just a big thumbs up if that would be an option.  ;D
Logged