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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - aharrah

Pages: [1]
1
Discussion - EVE / Re: Long pressing display
« on: November 02, 2023, 04:08:02 AM »

I do not know the touch controller that the display uses.

We are using a Riverdi RVT70HSBNWC00-B display. The datasheet for the display mentions UxTouch but does not go into any detail.

2
Discussion - EVE / Long pressing display
« on: October 27, 2023, 11:59:52 PM »

I'm using a BT817 Q with capacitive touch. I find that when I hold down a button, that after 45-60 seconds (varies) that the CTOUCH0 register will return 0x80008000 (no touch). I speculate that this might be a feature in some contexts, but I was hoping to understand the issue better, and possibly adjust some settings to avoid this timeout.




3
Discussion - EVE / Re: Rotated bitmaps are clipped
« on: September 27, 2023, 07:40:48 PM »

Thank you for the example. That trick works well. I brought up an additional question though. Here is your example with two new lines added:

Code: [Select]
CLEAR(1, 1, 1)
CMD_ROMFONT(1,34)  //Load the settings of built-in font 34 into bitmap handle 1

BITMAP_LAYOUT_H(0,0)
BITMAP_SIZE(NEAREST, BORDER,BORDER, 0,0) //Update the visible area of bitmap handle 1 to the maximum

CMD_LOADIDENTITY()
CMD_TRANSLATE(4128768, 3276800)
CMD_ROTATE(8192)
CMD_SETMATRIX()    //Configure transform matrix of bitmap

VERTEX2II(77, 10, 1, 'a')  // <-- "a" does not display (you can test this by moving it down below the CMD_TEXT line)
CMD_TEXT(77, 111, 1, 0, "TEST-ROTATED")  //Draw the text to be rotated
VERTEX2II(177, 10, 1, 'b') // <-- "b" displays

CMD_LOADIDENTITY()
CMD_SETMATRIX()    //Restore transform matrix of bitmap

CMD_ROMFONT(1,34)  //Re-load the setting of built-in font 34 into bitmap handle 1 to restore the visible area to normal
CMD_TEXT(100, 313, 1, 0, "TEST-Normal")  //Draw the normal text

The new lines (ex: VERTEX2II(177, 10, 1, 'b')) draw a char using its bitmap. The first one does not work, but the second one does. What does the CMD_TEXT command to that allows the bitmaps to be displayed?

Thank you,
Andy

4
Discussion - EVE / Rotated bitmaps are clipped
« on: September 06, 2023, 04:43:43 PM »

Is there a way to increase the size of the clipping region when I do transformations?

When I rotate a bitmap 45 degrees with CMD_ROTATEAROUND the corners of the bitmap are clipped. This is also seen if the bitmap is rectangular and rotated 90 degrees.

For example, if the bitmap is 100x50, and it is rotated 90 degrees, then the displayed bitmap will be rotated, but have the ends clipped.

It acts as if there is a scissor region that is the size of the bitmap.

This also happens when the bitmaps associated with the preloaded fonts are rotated.

--

I am using CMD_ROTATEAROUND to rotate around the center of the bitmap. I have also tried the CMD_TRANSLATE/CMD_ROTATE/CMD_TRANSLATE sequence, but it is effectively the same operation.

The work around for bitmaps is to enlarge the clipping region by simply enlarging the bitmap, filling in the extra with a transparent background. This workaround is not available when displaying built-in fonts though.

Thank you,
Andy

Pages: [1]