-
Notifications
You must be signed in to change notification settings - Fork 26
Joystick and Buzz
David Schmenk edited this page Feb 24, 2018
·
3 revisions
Read both axes of the joystick and simultaneously buzz the speaker. This runs in constant time, avoiding the crosstalk from the built-in paddle routines. And you can make different tones while doing so. It returns the x and y positions and two button states.
Compatibility: II
Usage: include "inc/joybuzz.plh"
Values:
const MAX_JOY = 79 // Maximum axis value
Function:
joypos(buzz)#4
Source Code: joybuzz.pla