Hello Tanmay,
Now that you are more familiarized with the process of communicating your development board with amazon's services. You can now begin to modify the code itself to add the peripherals you are looking for. To answer your question this is possible and is not limited to just GPIO, but you can enable many other pins and functions to include sensors and actors.
As a general overview the changes will be made mainly in your led_control.c, reading and writing to your thing's shadow, the lambda function will also have to include the new peripherals and the alexa skill. To get you started I recommend taking a look at the example "LPC54018iotmodule_aws_remote_control_wifi", this example is the same as what you have been working with except that it has extra peripherals added. In this case you will be able to control the IoT Module baseboard's LEDs and update the accelerometer.
Toggling a GPIO pin will work very similar to the LEDs, you will need to intialize the correct pin you want to work with and include it in your application. Before making any changes I recommend that you make a copy of your project, your lambda and your skill.
I sent you the JSON Alexa skill and the lambda function that you need to run this example via email.Please take in mind that these two files are from the Amazon side of the application not NXP. Due to this it is out of our scope to support the Amazon side of the applications that come with the SDK.
We don't have a detailed guide that shows how to achieve what you are looking for, sorry for the inconvinience that this may cause.You can begin to work on your application using as a reference the SDK example that I mentioned before.
Unfortunately, we cannot provide support for the modifications in the lambda function or the skill. The purpose of the SDK examples that we provide is to show you how to start working with Amazon Web Services. The modifications made to the project to fit your needs will depend on you, and we can only help you with the NXP side.If you have specific questions regarding the SDK examples, please let me know so I can assist you.
For further communication please reply directly in this post.
Thank you,
Sabina