FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.

Messages - ConfusedIrishMan

Pages: [1]
1
Discussion - Hardware / Re: FT813 non const text display?
« on: October 30, 2019, 04:11:11 PM »
Hi,

You can use string commands (such as sprintf) to write a string into the string variable x. This will allow you to create the string and then display it rather than have the hard-coded text string.

Best Regards,
FTDI Community

Got this sorted in the end. Your suggestion worked in a roundabout way. Thanks for the help

2
Discussion - Hardware / Re: FT813 non const text display?
« on: October 28, 2019, 01:06:30 PM »
Thanks for the prompt reply.

Yes I understand I can place a String variable instead of a hard coded string.

However, The string variable that I place inside the function has to be a constant.

Is there any way around this?

I am updating a String variable from elsewhere and would like to display the new String when the variable changes.

Not sure if I am explaining this very well.

3
Discussion - Hardware / FT813 non const text display?
« on: October 27, 2019, 04:08:37 PM »
Hi,

Using the newhaven 7" ft813 connected to an Arduino.

I am using  Ft_Gpu_CoCmd_Text(phost,140,30,31,0,"test");

to display the word test on the screen.

However the screen is part of a bigger project (naturally) and I would like to be able to change the text depending on other conditions.

String x = "test";
Something like  Ft_Gpu_CoCmd_Text(phost,140,30,31,0,x);

However this obviously isn't as straightforward as that as the function declaration for  Ft_Gpu_CoCmd_Text defines the text parameter as a const.

Is there anyway around this? I can think of a few brute force methods such as look up tables etc but just asking incase I am missing something basic.

Thanks for an help.

4
Thanks for the reply.

That example really cleared a lot of my issues up.

One issue I am still having is how to convert from png to the required .cpp code. that is shown below.

Code: [Select]
PROGMEM prog_uchar8_t SAMAPP_Tomato_DXT1_C1_Data_Raw[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc4,0xd1,0x21,0x00,0xa3,0xe1,0xc3,0xe9,0xa3,0xe9,0x82,0xe9,0x31,0xbe,0xc3,0x00,0xc5,0xd2,0x62,0xf1,0x61,0xf1,0x00,0x00,0xf1,0xa4,0x00,0x00,0x20,0x00,0x38,0xce,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x00,0x62,0x00,0xa4,0x81,0x42,0x21,0xa3,0x39,0xe4,0x39,0xc7,0xaa,0x65,0xf2,0x44,0x3a,0x44,0x42,0xa5,0x4a,0x84,0xf1,0x07,0xf2,0x43,0x01,0x45,0x02,0xa2,0x08,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x37,0xde,0xc3,0xf1,0x20,0xe9,0x66,0xea,0x86,0xea,0x86,0xea,0x47,0xda,0x03,0x02,0x44,0x32,0x85,0x4a,0x63,0x29,0xe3,0x31,0x65,0x4a,0x65,0xfa,0x44,0x4a,0xa5,0x52,0xc5,0xc1,0x84,0xf1,0x61,0xf1,0x62,0x00,0xc3,0xf1,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x81,0xf1,0xc2,0xf1,0x24,0xf2,0x66,0xea,0x29,0xeb,0x29,0xeb,0x88,0xe2,0x05,0xc2,0xa3,0x81,0x22,0x71,0xa5,0x4a,0x04,0x4a,0x81,0x10,0x62,0x29,0x62,0x29,0xe3,0x39,0xe4,0x89,0x45,0x82,0x65,0x82,0xa5,0xf1,0x44,0xe9,0x82,0xf1,0x82,0xf1,0x60,0xe9,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x81,0xf9,0xa2,0xf9,0xc2,0xf9,0x6a,0xf3,0x29,0xf3,0xac,0xf3,0x4a,0xeb,0x6a,0xeb,0x65,0x4a,0x85,0x42,0x24,0x42,0x84,0x22,0xc1,0x48,0x81,0x10,0x81,0x10,0xe2,0x30,0xc3,0x39,0x85,0x4a,0x84,0xe9,0xc6,0x4a,0xc6,0x5a,0x26,0x0b,0x86,0x91,0x60,0xf9,0x62,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x42,0x00,0x80,0xf9,0x24,0xfa,0xcc,0xf3,0xd1,0xec,0x90,0xec,0xe9,0xb2,0x03,0x3a,0x04,0x42,0xc4,0x89,0x42,0x69,0x83,0x71,0xc4,0x81,0x84,0x79,0x22,0x29,0x44,0x42,0x26,0x63,0x23,0xb9,0xe2,0xb8,0xa1,0xc0,0xc1,0xd0,0x02,0xd9,0xc6,0x52,0x01,0xe1,0xc0,0xe0,0x41,0xe9,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc2,0xf1,0x81,0xf9,0x25,0xfa,0x25,0xfa,0x29,0xf3,0x4f,0xec,0x8e,0xeb,0x03,0x3a,0xe3,0x31,0xea,0xaa,0x6b,0xeb,0x2d,0xf4,0x69,0xfb,0x08,0xfb,0xe8,0xfa,0x66,0xfa,0x05,0xfa,0x68,0x63,0x68,0x63,0xc4,0x81,0x60,0xc0,0x60,0xb0,0x60,0xc0,0x80,0xc0,0x45,0x7a,0xc0,0xd0,0x21,0xe9,0x41,0xf1,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa1,0xf1,0x40,0xf9,0xa0,0xf9,0x24,0xfa,0xee,0xeb,0xd1,0xec,0xd1,0xec,0x23,0x32,0x4b,0xcb,0xc8,0xe2,0x29,0xeb,0xc8,0xf2,0xa6,0xf2,0x65,0xfa,0x25,0xfa,0xe4,0xf9,0x43,0xf1,0xc1,0xe8,0x23,0xe9,0x63,0x79,0xa1,0xb0,0x20,0xb0,0x20,0xa8,0xa0,0xb8,0xe0,0xc0,0x60,0xd0,0x81,0xd8,0x21,0xe9,0x00,0x00,0x00,0x00,0x00,0x00,0xc2,0xf1,0x40,0xf9,0x40,0xf9,0xa1,0xf9,0xe3,0xf9,0x66,0xea,0x8c,0xeb,0xac,0xd3,0xc9,0xc2,0x27,0xd2,0xc5,0xd1,0xa4,0xd9,0xa4,0xe1,0xa4,0xe9,0xa3,0xf1,0x42,0xf1,0xe2,0xe8,0xc2,0xe8,0x81,0xe0,0x20,0xc0,0x20,0xb8,0x40,0xb0,0x20,0xa8,0x20,0xa0,0x40,0xb0,0xc0,0xc0,0x00,0xc9,0x80,0xd8,0x01,0xe1,0x00,0x00,0x00,0x00,0x00,0x00,0xa1,0xf1,0x20,0xf9,0x40,0xf9,0x01,0xf1,0x25,0xea,0xa4,0xe1,0x46,0xda,0x27,0xd2,0xa5,0xc9,0x64,0xc1,0xe2,0xc0,0xe2,0xc8,0xc2,0xc8,0xc1,0xd0,0x80,0xd8,0x20,0xd8,0x20,0xd8,0x20,0xc8,0x40,0xc8,0x20,0xb8,0x20,0xa0,0x20,0xb0,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x80,0xb0,0x40,0xc0,0xc0,0xd0,0x62,0xe1,0x41,0xf1,0x00,0x00,0x00,0x00,0x81,0xf9,0x00,0xf1,0x01,0xe1,0x00,0xe1,0x01,0xe1,0x02,0xd9,0x02,0xc9,0x03,0xc1,0x61,0xb8,0x81,0xb8,0x60,0xb8,0x60,0xb8,0x60,0xb8,0x60,0xc0,0x20,0xc8,0x40,0xc8,0x40,0xc8,0x40,0xc8,0x40,0xc0,0x20,0xb0,0xc1,0xf8,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x20,0xa8,0x40,0xb0,0x40,0xc8,0x80,0xd0,0xa4,0xd9,0x61,0xe9,0x00,0x00,0x00,0x00,0x41,0xe9,0xe0,0xd8,0xc0,0xd8,0xc0,0xd8,0xa0,0xd0,0x80,0xc8,0x80,0xc0,0x60,0xb8,0x40,0xb0,0x00,0xa8,0x00,0xb0,0x20,0xb0,0x20,0xb0,0x20,0xb8,0x20,0xb8,0x20,0xb8,0x20,0xc0,0x20,0xb8,0x20,0xb8,0x20,0xb8,0x60,0xf8,0x20,0xa8,0x20,0xa0,0x40,0xa8,0x20,0xa8,0x60,0xb8,0x40,0xc0,0x60,0xc8,0x63,0xd9,0x26,0xe2,0x00,0x00,0x00,0x00,0xe0,0xd8,0xa0,0xd0,0xa0,0xd0,0xa0,0xd0,0x80,0xc0,0x60,0xb8,0x60,0xb8,0x60,0xb8,0x00,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x00,0xa8,0x20,0xb0,0x20,0xb0,0x20,0xb8,0x20,0xb8,0x20,0xb8,0x20,0xb8,0x20,0xa8,0xac,0xe3,0x20,0xa0,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x40,0xb0,0x60,0xb8,0x80,0xc8,0x01,0xd9,0x62,0x00,0x00,0x00,0x00,0x00,0x41,0x00,0x60,0xc0,0x80,0xc0,0x60,0xb8,0x60,0xb8,0x60,0xb8,0x60,0xb8,0x00,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa0,0x20,0xa8,0x20,0xa8,0x20,0xb0,0x20,0xb0,0x20,0xb0,0x20,0xb0,0x20,0xb0,0x20,0xb0,0x20,0xb0,0x20,0xb0,0x20,0xb0,0x20,0xa8,0x20,0xa8,0x40,0xa8,0x40,0xb0,0x60,0xb8,0xc0,0xd0,0xc0,0xd8,0x83,0xe1,0x00,0x00,0x00,0x00,0x21,0x00,0x40,0xb8,0x60,0xb8,0x60,0xb8,0x60,0xb8,0x60,0xb8,0x00,0xa8,0x00,0xa8,0x20,0xa8,0x20,0xa0,0x20,0xa0,0x20,0xa8,0x40,0xa8,0x20,0xb0,0x20,0xb8,0x20,0xb8,0x20,0xb0,0x20,0xb0,0x20,0xb0,0x20,0xb0,0x00,0xb8,0x60,0xb0,0x20,0xa8,0x20,0xa8,0x60,0xb8,0x60,0xb8,0x60,0xb8,0xa0,0xd0,0x41,0xe1,0x61,0xe9,0x00,0x00,0x00,0x00,0x00,0x00,0xc2,0xa0,0xa1,0xb0,0x60,0xb8,0x60,0xb8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x40,0xa8,0x20,0xb0,0x20,0xb0,0x20,0xb8,0x20,0xb8,0x20,0xb8,0x20,0xb0,0x20,0xb0,0x00,0xb8,0x40,0xb0,0x00,0xb0,0x40,0xb0,0x60,0xb8,0x40,0xb8,0x80,0xb8,0xa0,0xc8,0x00,0xd9,0x54,0xbd,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x81,0xb0,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x00,0xa8,0x20,0xb0,0x20,0xb0,0x00,0xb0,0x20,0xb8,0x00,0xb8,0x20,0xb0,0x60,0xb0,0x00,0xb0,0x60,0xb0,0x60,0xb0,0x40,0xb0,0x60,0xb8,0x60,0xb8,0x80,0xc0,0x80,0xb8,0x41,0xd9,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xa9,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x40,0xa8,0x20,0xa8,0x20,0xa8,0x40,0xb0,0x20,0xb0,0x20,0xb0,0x20,0xb0,0x20,0xb0,0x00,0xb8,0x20,0xb0,0x60,0xb8,0x40,0xb0,0x40,0xb0,0x60,0xb8,0xa0,0xc0,0xa0,0xc0,0xe6,0xb1,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x54,0xbd,0x21,0x10,0x20,0x98,0x20,0x98,0x20,0x98,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x40,0xa8,0x20,0xa8,0x40,0xa8,0x20,0xa8,0x00,0xa8,0x00,0xb0,0x20,0xb0,0x40,0xa8,0x40,0xb0,0x00,0xb0,0x00,0xa8,0x40,0xa8,0x00,0xa8,0xa1,0xb0,0x80,0xb0,0x40,0xb8,0xa1,0xb8,0xa3,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x61,0x28,0x20,0x98,0x20,0x90,0x20,0x90,0x20,0x98,0x20,0x98,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x20,0xa0,0x40,0xa0,0x00,0xa0,0x20,0xa8,0x20,0xa8,0x20,0xa8,0x00,0xa0,0x00,0xa8,0x20,0xa8,0x40,0xa8,0x40,0xb0,0x29,0x02,0x21,0xe1,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa2,0x98,0x00,0x88,0x00,0x80,0x20,0x98,0x20,0x90,0x20,0x90,0x20,0x98,0x20,0x90,0x20,0x98,0x20,0x98,0x20,0x98,0x20,0x98,0x00,0x98,0x00,0x98,0x20,0x98,0x20,0x98,0x20,0x98,0x20,0x98,0x00,0x98,0x81,0x98,0x20,0x98,0xf0,0x33,0x41,0x00,0xcb,0x5a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xcb,0x5a,0xcb,0x5a,0x28,0x62,0x00,0x78,0x00,0x78,0x00,0x78,0x00,0x80,0x00,0x80,0x00,0x80,0x20,0x88,0x00,0x88,0x00,0x88,0x20,0x90,0x00,0x88,0x00,0x78,0x20,0x90,0x20,0x90,0x20,0x90,0x20,0x90,0x00,0x88,0x00,0x88,0x41,0x98,0xeb,0x62,0x28,0x52,0x28,0x5a,0x96,0xb5,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xcb,0x5a,0x00,0x00,0x20,0x08,0x28,0x52,0x61,0x90,0x2c,0x63,0x20,0x68,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x78,0x00,0x70,0x00,0x78,0x00,0x78,0x00,0x68,0x00,0x70,0x00,0x70,0x00,0x78,0x00,0x68,0x00,0x78,0x00,0x78,0x2c,0x5b,0x92,0x4c,0x0b,0x6b,0x2c,0x5b,0x28,0x52,0xcb,0x5a,0xcb,0x5a,0x00,0x00,0x00,0x00,0xcb,0x5a,0x28,0x5a,0x0c,0x6b,0x28,0x52,0xeb,0x62,0x0c,0x63,0xeb,0x5a,0xeb,0x52,0xe7,0x41,0x00,0x60,0x00,0x68,0x00,0x60,0x00,0x60,0x00,0x68,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x68,0x00,0x58,0x00,0x60,0x25,0x31,0x07,0x3a,0x48,0x4a,0xeb,0x5a,0x0c,0x63,0xeb,0x62,0x0b,0x53,0x28,0x5a,0xcb,0x5a,0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x52,0x2c,0x5b,0xeb,0x62,0x2c,0x63,0x0c,0x63,0xaa,0x52,0xe7,0x41,0x45,0x31,0xa6,0x21,0x41,0x20,0x41,0x28,0x00,0x50,0x00,0x40,0x00,0x40,0x00,0x48,0x00,0x40,0x00,0x40,0x00,0x50,0x41,0x20,0x82,0x00,0x61,0x20,0x45,0x31,0x49,0x4a,0xeb,0x5a,0x0c,0x63,0xeb,0x62,0x28,0x52,0x28,0x5a,0xcb,0x5a,0x00,0x00,0x00,0x00,0xcb,0x5a,0x28,0x5a,0x28,0x52,0x2c,0x5b,0x4d,0x63,0xeb,0x62,0x0c,0x63,0xeb,0x5a,0xc5,0x39,0x62,0x20,0x41,0x20,0x41,0x20,0x41,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x41,0x20,0x41,0x20,0x41,0x20,0x25,0x29,0xc5,0x39,0xeb,0x5a,0xeb,0x62,0x4d,0x63,0x49,0x52,0x2c,0x6b,0x00,0x00,0xcb,0x5a,0x00,0x00,0x00,0x00,0x00,0x00,0xcb,0x5a,0x00,0x00,0x20,0x08,0xc7,0x41,0x28,0x52,0x08,0x32,0x8a,0x52,0x49,0x52,0x61,0x20,0x61,0x20,0x61,0x20,0x61,0x20,0x61,0x20,0x75,0xad,0x61,0x20,0x61,0x20,0x61,0x20,0x61,0x20,0x61,0x20,0x61,0x20,0x61,0x28,0x49,0x52,0x8a,0x52,0x29,0x52,0xc7,0x41,0x00,0x00,0x75,0xb5,0x96,0xb5,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0xcb,0x5a,0x96,0xb5,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};

Thanks in advance,
John

5
Thanks for the reply.

Still having an issue with the raw files. How are these expected to be declared? I see the comment  //load each .raw file into graphics RAM from directory ‘test’ is this still applicable?

When I try run the code I get

Code: [Select]
Arduino: 1.8.9 (Mac OS X), Board: "Arduino/Genuino Uno"

exit status 1
'SAMAPP_Tomato_DXT1_C0_Data_Raw' was not declared in this scope


6
Discussion - Software / Issue with FT813 and 'Ft_App_LoadRawFromFile'
« on: April 13, 2019, 01:05:59 PM »
Hi,

Relative newbie to HMI and currently trying to load the  .raw data I got when converting a PNG.

I have followed AN303 and I am attempting to replicate the following on an Arduino.

"5.4 Example Code to display ‘DXT1’ image"

Code: [Select]
ft_void_t SAMAPP_GPU_DXT1()
//c0 is paris_480x272_c0.raw
//c1 is paris_480x272_c1.raw
//b0 is paris_480x272_b0.raw
//b1 is paris_480x272_b1.raw
{
  //load each .raw file into graphics RAM from directory ‘test’
  //RAM_G is starting address in graphics RAM, for example 00 0000h
  Ft_App_LoadRawFromFile("..\\..\\..\\Test\\c0.raw", RAM_G);
  Ft_App_LoadRawFromFile("..\\..\\..\\Test\\c1.raw", RAM_G + 16320);
  Ft_App_LoadRawFromFile("..\\..\\..\\Test\\b0.raw", RAM_G + 16320 * 2);
  Ft_App_LoadRawFromFile("..\\..\\..\\Test\\b1.raw", RAM_G + 16320 * 3);
Ft_App_WrCoCmd_Buffer(phost, CLEAR(1, 1, 1)); // clear screen Ft_App_WrCoCmd_Buffer(phost,COLOR_RGB(255,255,255));
  Ft_App_WrCoCmd_Buffer(phost,SAVE_CONTEXT());
  //B0&B1 Handle
  Ft_App_WrCoCmd_Buffer(phost,BITMAP_HANDLE(0));
  Ft_App_WrCoCmd_Buffer(phost,BITMAP_SOURCE(RAM_G + 16320*2));
  Ft_App_WrCoCmd_Buffer(phost,BITMAP_LAYOUT(L1, 60, 272));
  Ft_App_WrCoCmd_Buffer(phost,BITMAP_SIZE(NEAREST, BORDER, BORDER, 480, 272));
  //C0&C1 handle
  Ft_App_WrCoCmd_Buffer(phost,BITMAP_HANDLE(2));
  Ft_App_WrCoCmd_Buffer(phost,BITMAP_SOURCE(RAM_G));
  Ft_App_WrCoCmd_Buffer(phost,BITMAP_LAYOUT(RGB565, 120*2, 68));
 Ft_App_WrCoCmd_Buffer(phost,BITMAP_SIZE(NEAREST, BORDER, BORDER, 480, 272));
// start drawing bitmaps
Ft_App_WrCoCmd_Buffer(phost,BEGIN(BITMAPS));
Ft_App_WrCoCmd_Buffer(phost,BLEND_FUNC(ONE,ZERO)); Ft_App_WrCoCmd_Buffer(phost,COLOR_A(0x55)); Ft_App_WrCoCmd_Buffer(phost,VERTEX2II(0, 0, 0, 0));
Ft_App_WrCoCmd_Buffer(phost,BLEND_FUNC(ONE,ONE));
Ft_App_WrCoCmd_Buffer(phost,COLOR_A(0xAA));
Ft_App_WrCoCmd_Buffer(phost,VERTEX2II(0, 0, 0, 1));
Ft_App_WrCoCmd_Buffer(phost,COLOR_MASK(1,1,1,0));
Ft_Gpu_CoCmd_Scale(phost, 4*65536,4*65536);
Ft_Gpu_CoCmd_SetMatrix(phost);
Ft_App_WrCoCmd_Buffer(phost,BLEND_FUNC(DST_ALPHA,ZERO));
Ft_App_WrCoCmd_Buffer(phost,VERTEX2II(0, 0, 2, 1));
Ft_App_WrCoCmd_Buffer(phost,BLEND_FUNC(ONE_MINUS_DST_ALPHA,ONE));
Ft_App_WrCoCmd_Buffer(phost,VERTEX2II(0, 0, 2, 0));
Ft_App_WrCoCmd_Buffer(phost, RESTORE_CONTEXT());
Ft_App_WrCoCmd_Buffer(phost,END());
Ft_App_WrCoCmd_Buffer(phost,DISPLAY());
//swap the current display list with the new display list
Ft_Gpu_CoCmd_Swap(phost);
  //write to the FT800 FIFO command buffer - bitmap will appear after this command
  Ft_App_Flush_Co_Buffer(phost);
}

However when I try to compile the sketch I am getting

"Ft_App_LoadRawFromFile not declared in this scope" which suggests to me that the library is missing. I have checked the .h files given in the examples but can't find the FT_App commands in any.

Thanks for any help.

John

Pages: [1]