Youth Repellent

High frequency sound that only youthful ears can hear

Flashing led shows the code is running

#include "mbed.h"

PwmOut speaker(p21);
DigitalOut myled(LED1);

int main() {
    speaker.period_us(62.5);
    speaker = 0.5;
 myled = 0;
 while (1) {
      myled = !myled;
     wait(1);
   }
}
By mctouch
Created on September 11, 2011, 19:43

Category: Afternoon gimmickry

Difficulty: amateurs

License:  Creative Commons Attribution-Noncommercial 3.0 Unported License

Tags: high, frequency, youth, repellent, hertz, sound

Images

Files

Fritzing Files

Links

  • Print this
© 2007 - 2011 University of Applied Sciences Potsdam