Anonymous user
PC Speaker: Difference between revisions
m
→Sample Code
[unchecked revision] | [unchecked revision] |
m (→Sample Code: <-- Added some comments and info on emulators) |
m (→Sample Code) |
||
Line 19:
= Sample Code =
This will work on real hardware, but may not on emulators. The code also changes the PIT timer 2 frequency, so you will have to reset that when your done "beep"ing :)
//Play sound using built in speaker
Line 51:
timer_wait(10);
nosound();
}
|