Answer to Question #171624 in Python for Kev smith

Question #171624


 


#active buzzer code 

 

  loco_iot.enable(msg.SUBTYPE_DO_1)



  data = [1]

  loco_iot.setData(msg.SUBTYPE_DO_1, data)


  

  time.sleep(2)


  data = [0]

  loco_iot.setData(msg.SUBTYPE_DO_1, data)


 #code lcd

 

  loco_iot.enable(msg.SUBTYPE_LCD)


  

  data = [4, 1, ord('a')]

  loco_iot.setData(msg.SUBTYPE_LCD, data)

  data = [5, 1, ord('b')]

  loco_iot.setData(msg.SUBTYPE_LCD, data)

  

  time.sleep(5)


   




5a) Push button + LCD + Buzzer + LED


Write a Python program to create two polyphonic tones using the Buzzer and a push-button to switch between the two tones. Interface the LCD to display which tone is currently being played, and an LED to blink at random intervals when



   


1
Expert's answer
2021-03-14T18:35:37-0400
Dear Kev smith, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS