alexa / avs-device-sdk

An SDK for commercial device makers to integrate Alexa directly into connected products.
https://developer.amazon.com/alexa/alexa-voice-service
Apache License 2.0
1.26k stars 604 forks source link

Unable to turn on LED's connected to GPIO pins #1197

Closed kadam1 closed 5 years ago

kadam1 commented 5 years ago

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.

Briefly summarize your issue:

What is the expected behavior?

What behavior are you observing?

Provide the steps to reproduce the issue, if applicable:

Tell us about your environment:

What version of the AVS Device SDK are you using?

  <x.y.z>

Tell us what hardware you're using:

Tell us about your OS (Type & version):

kadam1 commented 5 years ago

Unable to turn on LED which is connected to RPi GPIO pins ? I am modify sampleapp main.c file and UIManager.cpp file ?

mavamazon commented 5 years ago

Hi @kadam1!

SDK does not provide any code to operate RPi LEDs but you can implement it on your own. Yes, UIManager is the right place for you to put the code that controls LEDs. You may put any initialization logic or customize implementations in SampleApp/src/SampleApplication.cpp, specifically in initialize() method.

Please let me know if that helps.

kadam1 commented 5 years ago

I am following sam setup configuration as per below link https://developer.amazon.com/docs/alexa-voice-service/indicate-device-state-with-leds.html

but still it was not working?

visayamv commented 5 years ago

Hi @kadam1 , I think the people in the Alexa forums may have more insight on how to help you on this.

You may also want to use WiringPi's utility command gpio to first see if you are able to access the GPIO pins. Look at the examples on how to write to the GPIO directly. In the AVS document, I believe WiringPi pin 0 and 1 are (GPIO0 and GPIO1) respectively.

visayamv commented 5 years ago

Hi @kadam1 , I will be closing this issue due to inactivity. Let us know if you still need help on this and we can reopen your case. Thanks.