147 views
in Getting started by
Hi,
I am suraj,
I am now working on the project in which i want to touch a push button in gui and the gpio of the corresponding pin in the board which i use should should do the corresponding operation.
Please do suggest me the steps and where could i refer the documents to do so and the further application.

Thanking you,
with regards
suraj

1 Answer

0 votes
by

Hi Suraj,

please have a look into the folder /Examples of the LPC54628 Build Environment - there you will find the example DeviceIntegration. This example shows how to control the onboard LED by changing the state of a checkbox.

Concerning the access of GPIOs let me refer to the examples provided by the NXP SDK.

Best regards,

Manfred.

by
hi manfred,

thank you for your help, i will definitely try it out.

with regards

suraj
by
hi manfred,

i saw the way you told to see in the examples of the lpc54628 board build environment

in that only the sample program of what is to be implemented for gui is been given, i think the method which they have given was not i asked if i am wrong please do guide me

i asked to switch it on the gpio pin when i give input in the gui screen push button if given so.

interfacing both the gui and the hardware

with regards

suraj
by

Hi Suarj,

of course, it is not exactly the same - but I thought it could be a helpful example, because the principles are the same:

Instead of using the checkbox as shown in the example, you can use a pushbutton in your application.

Instead of changing the state of the LED as shown in the example, you can change the state of a GPIO in your application.

The example is intended to demonstrate the interaction between a GUI application and the underlying hardware. See also the chapters Integrating with the device and Implementing a Device Interface.

Furthermore, the example shows also the other way: As soon as the state of a GPIO changes (= the hardbutton on the board is pressed), the GUI reflects the new state.

I hope this helps...

Best regards,

Manfred.

by
hi manfred,

thanks for the help. i agree to do so and can i do with the system handler and the components which is meant for the device integration in embedded wizard

and so the example program for that or reference is less to be found in the website, is there any other sources to see that and get referred to it.

with regards

suraj
by
hi manfred,

i've gone through the examples and all were shown the particular pin or someother thing which is similar to the project which is done in the gui itself like horizontal slider and all the basic stuffs except in device integration.

in device integration, i found that the device class should be the application class for the gui and the pin value is been told to initialize or told to give the state but i have a doubt that without knowing the device gpio port and the pin how can i give the value to be high or low.

do provide a solution for that, i have attached the photo for the command in the function for further reference

if you want my referenced example please do refer this

https://doc.embedded-wizard.de/device-class-command?v=10.00

do help me as soon as possible

with regards

suraj

Embedded Wizard Website | Privacy Policy | Imprint

...