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 - Rad

Pages: [1]
1
Discussion - EVE / Re: Picture transparency on another picture
« on: April 03, 2024, 09:50:11 AM »
OK, this is simple when image has no background...
But what's the way if the image is jpg with a solid (say white/back) color background?


2
Discussion - EVE / Picture transparency on another picture
« on: April 02, 2024, 08:53:37 AM »
Hi,

I am trying to draw some pictures on another background (white/black color) on another background picture. However I am not able to make the overlaying picture with its background  being transparent.

The closest result I obtain with :
1. draw background image (ACTS),
2. BLEND_FUNC(ONE, ONE)
3. draw overlaying picrute.

But a problem is that the second picture is only visible with some transparency on dark areas of background image.

Can anyone advise how to achieve it?

Thanks in advance

3
Discussion - EVE / How often and when read REG_TOUCH_TAG
« on: February 08, 2024, 08:20:23 AM »
Hi,

as in the subject:
is there any practical/theoretical redord/order when and how often REG_TOUCH_TAG can be read?

Once, testing some code I (mistakenly) read this reg every 1 millisecond and noticed that EVE started to crash. It took me a while to get it noticed that I do it too often.

Another point is about then this reg should be read:
can it be read anytime or rather once EVE finishes processing a freame buffer and REG_CMD_WRITE = REG_CMD_READ ?

4
Discussion - EVE / Reading Tag vs External Clock
« on: January 15, 2024, 09:40:46 AM »
Hello,

In my recent project I use Riverdi RVT70HSBNWC00 (BT817Q), Arduino Maga and modified old Bridgetek FT800 library.

The problem I am facing now is reading the touch Tag when EVE is feed from the external crystal (HostCommand(FT_CLKEXT) followed by HostCommand(FT_ACTIVE) - w/o freq adjustment).
There is no a such problem when the internal clock is used (HostCommand(FT_CLKINT) followed by HostCommand(FT_ACTIVE) ).

The display behaves as normal, just the touch does not.

Any idea what could be the problem/fix?

Thanks in advance

5
Discussion - EVE / Re: Displaing an image from flash
« on: September 05, 2023, 08:50:08 AM »
I made a first step forward - managed to put flash into fast mode.
Thank you Matrix Orbital for pointing me out the problem.
And as always big thanks to Rudolph - your way of putting EVE into fast mode (sending CMD_FLASHFAST to REG_CMDB_WRITE followed by 4x "0") worked straight away! :)

EDIT:
I made some progress, however I got stuck again...
When I try to display w picture directly from flash EVE_SetBitmap(0x800000 | 130 , COMPRESSED_RGBA_ASTC_12x12_KHR, 1056, 612); //0x800000 | (4160/32)
then it does not work - a previous screen is slowly fading to black...

but when I read it from flash (to ram) and then I try to display
EVE_FlashRead(0, 4160, 71808);
EVE_SetBitmap(0 , COMPRESSED_RGBA_ASTC_12x12_KHR, 1056, 612);
then all is working just fine...

Could you point me the root cause/solution?

Thanks in advance!



6
Discussion - EVE / Re: Displaing an image from flash
« on: August 08, 2023, 08:49:01 PM »
Thank you for your replies.

I am trying to put it into fast mode. However I have two questions:

1. I try to put into fast mode straight after EVE inits and a check the state of external flash as basic mode. In the manual I can see that this is (probably the only one) command that reads back a result - Command layout:
+0 CMD_FLASHFAST (0xFFFF FF4A)
+4 result
so I build it as (looking at Matrix's code):
  void EVE_FlashFast(void)
  {
    Send_CMD(CMD_FLASHFAST);
    Send_CMD(0);
  }
The manual is not that clear how to execute this and only says: "When the host MCU calls CMD_FLASHFAST".
I tried two ways of sending this command:
- both subcommands transmitted as Host Memory Write (section 4.1.4 in data sheet) format,
- first as write and second as read.

But either way this command causes that EVE crashes, by meaning of REG_CMD_READ gives 4095 (although reading RAM_ERR_REPORT gives only zeros).

2. Does the flash need to be detached, attached back and then put into fast mode? Can it not be put into fast mode straight after initialization (and eventually checked if is in basic mode)?

 

7
Discussion - EVE / Displaing an image from flash
« on: August 01, 2023, 07:21:29 AM »
Hi there,

I am struggling to perform the above action. I did the steps as follow:
1. using EAB (v2.8.0 ), Image util. tab - converted image with COMPRESSED_RGBA_ASTC_4x4_KHR
2. using EAB (v2.8.0 ), Flash util. tab - added ".raw", and generated .bin file (with result as in the attachment)
and updated & verified an external flash of BT817 (EAB with MPSSE module is capable to detect flash and change to flash to FAST mode).
3. with STM32 MCU, after EVE init (flash in BASE state) - tried to display image with code:
cmd_dlstart();
cmd_setbitmap(0x800000 | 4160/32, COMPRESSED_RGBA_ASTC_4x4_KHR, 528, 304);
cmd(CLEAR(1,1,1));
cmd(BEGIN(BITMAPS));
cmd(VERTEX2II(10, 10, 0, 0));
cmd(END());

but only blank screen is visible...
Smaller picture also does not help.

What could be wrong, how to detect the root cause and how to fix it?

Is there a possibility to read image from flash in another way?

I was able to upload a small image data via SPI into RAM_G and then display it successfully (same code but cmd_setbitmap(0,COMPRESSED_RGBA_ASTC_4x4_KHR, 52, 30) ).


Edit:
With CMD_ FlashRead(0, 0, 4096) used and then reading RAM_G (with Rd8() - the same function as when reading chip ID - from addr 0 onwards) the returned values are just "FF"s for quite long part of memory (while bolb file starts with 70 DF...). While EAB flash utility reads same values as in the file flash was written with.

No idea what happens here...


8
Discussion - EVE / Re: Cold start problem with Arduino
« on: September 17, 2021, 07:29:49 AM »
Hi Rudolph,

thanks for your reply.


Maybe calling it a "cold start" is not best description for this problem, but this one came to my mind as first.

I use Riverdi setup (https://riverdi.com/product/rvt70aqffwr00/ + https://riverdi.com/product/arduino-riverdi-tft-shield/) and oryginal arduino mega board.
and their demo sketch:
https://github.com/riverdi/riverdi-eve-arduino
as well as Matrix orbital demo:
https://github.com/MatrixOrbital/Basic-EVE-Demo-Arduino
with mods of
function FT81x_Init:
  wr16(REG_HCYCLE + RAM_REG, 1056L);         // Set H_Cycle to 548
  wr16(REG_HOFFSET + RAM_REG, 46L);       // Set H_Offset to 43
  wr16(REG_HSYNC0 + RAM_REG, 0L);         // Set H_SYNC_0 to 0
  wr16(REG_HSYNC1 + RAM_REG, 10L);         // Set H_SYNC_1 to 41
  wr16(REG_VCYCLE + RAM_REG, 525L);         // Set V_Cycle to 292
  wr16(REG_VOFFSET + RAM_REG, 23L);       // Set V_OFFSET to 12
  wr16(REG_VSYNC0 + RAM_REG, 0L);         // Set V_SYNC_0 to 0
  wr16(REG_VSYNC1 + RAM_REG, 10L);         // Set V_SYNC_1 to 10
  wr8(REG_SWIZZLE + RAM_REG, 0L);        // Set SWIZZLE to 0
  wr8(REG_PCLK_POL + RAM_REG, 1L);      // Set PCLK_POL to 1
  wr16(REG_HSIZE + RAM_REG, 800L);           // Set H_SIZE to 480
  wr16(REG_VSIZE + RAM_REG, 480L);           // Set V_SIZE to 272

and pin defs:
#define EveChipSelect_PIN     10  // PB1
#define EveAudioEnable_PIN    1  // PD1
#define EvePDN_PIN           8  // PB2
#define SDChipSelect_PIN      5  // PD3
#define Button1_PIN           4  // PD5
#define Button2_PIN           3  // PD6
#define Button3_PIN           2  // PD7
#define SDCardDetect_PIN      6  // PD4

and one more demo sketch, but can't find it now...


EDIT:
a strange thing..
using the same code from Riverdi github (#define EVE_3 + #define RTP_43) with different hardware:
oryginal adruino Leonardo + ftf shield + https://riverdi.com/product/ritft43resfr/ gives opposite effect: it does not work after flashing, but works after disconnecting and then reconnecting of USB cable....

I am trying to check your code but it's not that straightforward to make adjustements for pin defs  and LCD type and can't find a good guide what and where to change...
pin def:
CS to D10 would be eve_target.h-> line 1148 -> #define EVE_CS       10
LDC type within eve_config.h -> line 151 -> #define EVE_RVT43H
still not working something else?

9
Discussion - EVE / Cold start problem with Arduino
« on: September 15, 2021, 08:47:31 AM »
Hi there,

I have noticed that in many demo codes (martix-orbital, riverdi, generic, etc) eve works right after firmware being uploaded (or restart button pressed), but after Arduino board was powered off and we have just power it back then nothing is displayed.

I have no idea what exactly happens, but for sure at this state EVE does not respond to SPI transmissions...

Tested on Arduino Mega with EVE FT812.

Anyone have a clue what is the reason and a work around?


10
Discussion - EVE / Re: Widget limit
« on: March 19, 2021, 07:58:08 AM »
I am just a beginner with EVE. Of course I use CMD button.
I was expecting ready to use commands to be the most optimal to use in every respect especially comparing to bitmaps....
I'd say the programming manual is very poor regarding such info (regarding what's more or less efficient way to use), or even most info...

Thank you Rudolph a lot, I will try to use something less resource consuming.
BTW: OPT_FLAT makes buttons using ways less lines.

Maybe it could be an idea for developers to add more OPTs for widgets to make them more fancy or less resource consuming.

Regarding EVE SE the code generated is such overloaded with unnecessary lines for other than FT/BT platforms that cleaning this up takes more time than writing code ourselves. Maybe there could be an option for exporting the code for just "other MCU". That's why I found this app unusable.

11
Discussion - EVE / Widget limit
« on: March 17, 2021, 05:26:48 AM »
Hi there,

I am trying to place on one screen approx 50 tagged push buttons , however I think there is some kind of limitation same with EVE1,EVE2,EVE3. With the same code I am able to display up to approx 30 buttons on one display frame.
Please can you advice what it the limitation and if there is a way to place much more tagged push buttons (50..100)?

Thank you in advance.

Pages: [1]