Shop OBEX P1 Docs P2 Docs Learn Events
Freqout.freqout not working for my piezo — Parallax Forums

Freqout.freqout not working for my piezo

ripriceriprice Posts: 3
edited 2005-08-01 01:38 in General Discussion
What am I doing wrong?· I hear two clicks when I execute this code but no "beep".

Here is my code:

·· import stamp.core.*;
·· public class Bot
·· {
···· static Freqout pin4Piezo = new Freqout(CPU.pin4);
···· public static void main()
···· {
······ pin4Piezo.freqout(3250, 1000);
···· }
·· }

Here is my circuit:

·· pin4>
piezoSpeaker
Vss

Comments

Sign In or Register to comment.