login

online now

We have 123 guests and no members online

search

 
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: No sound output in Loop

No sound output in Loop 5 years 5 months ago #209

I can get sound out of the ginsing but as soon as the loop function runs I don't get any output. I have attached the .ino file. When I run this code it plays the single note in the test() function and I can hear the output. Then the loop starts to run. The loop function is running properly because I can see the output led turning on and off as the single note is triggered over and over but there is no sound output.

John
Last Edit: 5 years 2 months ago by administrator.
The administrator has disabled public write access.

Re: No sound output in Loop 5 years 5 months ago #210

here is the ino file RAR'd since I can't upload ino files
The administrator has disabled public write access.

Re: No sound output in Loop 5 years 5 months ago #211

okay. 3rd time is the charm.
Attachments:
The administrator has disabled public write access.

Re: No sound output in Loop 5 years 5 months ago #212

I can duplicate the issue here - looking at it now ...
The administrator has disabled public write access.

Re: No sound output in Loop 5 years 5 months ago #213

I have found the problem. In your setup() function, you initialize the shield, then run the test() function, terminate the shield, and then the loop() function get called after you have terminated the shield. To fix the problem you can just comment out the GS.end() call in your setup() function and call it when you need to terminate the program at the right time.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.198 seconds