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

Pages: [1]
1
Hi scorpioprise,  your way is a kind of hack method.  Another way I recommend is to :

  • Add a source file by right clicking the page "new->source" and give a file name such as "mainpage_user.c"
  • write your own function but need use ESD_FUNCTION built-in macro to let ESD aware of it, for example:

#include "Ft_Esd.h"
#include <stdio.h>



static uint32_t update_count = 0;
ESD_FUNCTION(getUpdateCount, Type = uint32_t)
uint32_t getUpdateCount()
{
   return update_count;
}

ESD_FUNCTION(readSensor, Type = ft_int32_t)
ft_int32_t readSensor()
{

   if (update_count ++ > 60*10){
      if (update_count > 60*20)  update_count = 0;
      return 0xFF00FF00;
   }
   else
      return 0xFFFF00FF;
      
}


After that, you will find the user functions at right side Library Browser of ESD.  Connect these two function with the right property of targeted widget. Here is one snap shot and ESD project example:




2
Hi Marcel,
  I tried your code and it works fine for me.

  I enclosed the converted EVE Paletted8 format data for you to reference(with .raw file extension), which is working on my side.


  The pngp2pa.exe requires the pngquant.exe was run for the input file in advance. pngquant is the utility to make sure the input PNG file is in correct format.

   Let me know if it is working for you.

Pages: [1]