/*
- * tone.c:
+ * softTone.c:
* Test of the softTone module in wiringPi
* Plays a scale out on pin 3 - connect pizeo disc to pin 3 & 0v
*
{
int i ;
- if (wiringPiSetup () == -1)
- {
- fprintf (stdout, "oops: %s\n", strerror (errno)) ;
- return 1 ;
- }
+ wiringPiSetup () ;
softToneCreate (PIN) ;
delay (500) ;
}
}
-
}