Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Piezo!
- */
- #include "simpletools.h" // Include simpletools
- int note[] = {1047, 1175, 1319, 1397, 1568, 1760, 1976, 2093};
- int main() // main function
- {
- for(int i = 0; i < 8; i++)
- {
- freqout(9, 500, note[i]); // pin, duration, frequency
- pause(68);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement