Shop OBEX P1 Docs P2 Docs Learn Events
Speaker Coding Help — Parallax Forums

Speaker Coding Help

matthew024matthew024 Posts: 9
edited 2008-08-14 15:13 in Learn with BlocklyProp
Hello all,
I 'm a beginner programmer. I have attempted to program a song to play in the piezospeaker. It will not work. Please help fix the attached bs2 file.
It has an error 130. I don't know what that means.

Thanks!

Comments

  • Beau SchwabeBeau Schwabe Posts: 6,557
    edited 2008-08-14 04:21
    matthew024,

    Welcome to the forum!

    In the Data Section for your frequencies, you have an extra comma at the end of your data.· If you remove that, then your program should compile.





    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
    1280 x 1024 - 220K
  • SRLMSRLM Posts: 5,045
    edited 2008-08-14 05:23
    Nice answer with the image and all. I would've just said line 32.

    Hey matt: any idea what you're going to do for a first project on your own? I'm curious...
  • matthew024matthew024 Posts: 9
    edited 2008-08-14 15:13
    Hey!

    Thanks for help! That image thing was just awesome.·An to answer the question, I have bought the What's a Microcontroller - Discovery Kit. Next year I am going to start the Boe-Bot! I just take the knowledge I learned and use it for the Boe-bot. Well thanks for all the help!
Sign In or Register to comment.