570 views
in GUI Development by

Hello,

I have a value which is changed by my device. I want that the GUI always shows the current value. I read this articel. https://doc.embedded-wizard.de/device-class-and-device-driver?v=8.20#5 

But I didn't found any description how this should work. I tried something like that.

var float peakGUI;

native(peakGUI)
{
  peakGUI=peak_wavelength;
}

PeakWavelengthGUI=peakGUI;
return 1;

But this function is not shown at the application code. How can I run this code from my Device? Is there maybe an example for something like this?

 

Kind regards,

Alex

1 Answer

0 votes
by
Hi Alex,

please have a look into one of our Build Environments for STM32 - there you will find an example called 'DeviceIntegration'.

As soon as the user presses the hard button on the target, the device driver calls the method UpdateHardButtonCounter() of the corresponding device class, which updates a counter view on the display. This means, the content of the display is changed due to a changed value of the underlying hardware.

I think this is exactly what you are looking for...

Best regards,

Manfred.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...