Skip to content

Why this code is just showing black screen to my band. Can you please help me #116

Closed Answered by Rafucho25
alexmathew11 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, you are declaring the variable Answer1 and Answer2 twice:

var Answer1=["I am calledra, how can i b at service.","I am s you?","I am "] 

and

const Answer1 =   hmUI.createWidget(hmUI.widget.BUTTON, {

this is not possible. I recommend using the simulator or check the log in the zepp app. This code should work:

    function randomNum(lowerInteger, upperInteger) {
      let choices = upperInteger - lowerInteger + 1;
      return Math.floor(Math.random() * choices + lowerInteger);
    }
  
    var Answer3=["Um sorry ","Sorry "]
    var Answer2=["A human ."," made "]
    var Answer1=["I am calledra, how can i b at service.","I am s you?","I am "]
      
    const BtnAnswer1 = hmUI.createWidget(

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexmathew11
Comment options

Answer selected by alexmathew11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants