1
Discussion - Software / Re: EVE Designer - showing Variables of FT900 in display
« on: December 07, 2018, 07:14:34 am »
Hi scorpioprise, your way is a kind of hack method. Another way I recommend is to :
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:
- 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: