Menu

📰
0

how to write code for a motor + playing a melody?

Reddit r/arduino·u/AssociationObvious56·about 1 month ago
#9g1sPFbV
#code#motor#playing#melody#runs#article
Reading 0:00
15s threshold

i have code that runs a servo motor and another code that plays a melody that i modified from the tune code, how can i combine them so that the motor runs while the song is playing? i tried to just copy paste my code from one file to the other and combine them in the functions but it hasn’t been working. any help would really be appreciated!!

Read More