FTTB here is the last of the timebase uploads, less _trigger_ modes, and including the first ultra-simple circuit for the MacBook Pro 13 inch as a comment right at the end of the script.
It includes an offset to allow for sound card midpoint bit error...
I intend to have eveything for basic calibration as part of the script, incuding ultra simple circuits, and matching code if required...
There is now a commented out sinewave generator for Linux machines with /dev/dsp to experiment with...
Although the circuit remains the same the people experimenting will have to work out the dual Stereo I/O plugs wiring for themselves...
Best viewed in plain text mode and watch for wordwrapping, etc...
Hi,
I am stuck while developing a shell sub-routine which checks the log file for "success" or "failure". The subroutine reads the log file and checks for key word "success", if found it set the variable (found=1). It returns success or failure based on this variable.
My problem is, I can... (2 Replies)
Hi,
I am new to unix and using linux 7.2. I would like to create a script that would make it easyer for me to run my java programms. At the moment I have to type java myJavaprogram
I am trying to write a script that will allow me to type something like this "myscript myJavaprogram" or maybe... (4 Replies)
hi all,
i'm using the following script,
Status=1
Function_do ()
{
while read line;
do
if ; then
#echo $line
if ; then
Status=0
echo " LINKINK ERROR "
fi
fi
done < ldd.log
}
Function_do (4 Replies)
Hi All,
I would like to develop a shell script for stop & start an application server (1-4) on Solaris box. Here are the user requirements for this task.
1. User will input the option which server they wish to stop.
2. Will clear cache files from specific location.
3. ... (1 Reply)
The scope of the shell/perl script is to read the input text file. Validate the expiry date of each certificate and send the mail to the user. The user takes action to add the new certificate to the storage file and user owns the responsibility to update the input text file with the new certificate... (5 Replies)
Hi,
Pleasse could someone advise why i'm getting this error below - No such file or directory
dev6:$ ls -ltr ReleaseManagement.sh
-rwxr-xr-x 1 dev fix 4830 Aug 22 11:13 ReleaseManagement.sh
dev6:$ ./ReleaseManagement.sh
: No such file or directory
dev6:$
thank you (2 Replies)
This site is the first to get this snippet.
It will capture an audio recording of any time length within the limits of OSX's QuickTime Player's capablility...
A shell script derivative of this will be used as a further capture for CygWin's AudioScope.sh.
Thoroughly read ALL the comments in... (0 Replies)
Hi,
I want 10000+ unique Audio file of approx 2MB each. How can i generate numerous audio files using shell script. Any tool, command or suggestions are welcome.
If i give one audio seed file then can we create numerous unique files with same seed file?
Any help is highly appreciable.... (11 Replies)
Hi all...
Well I have not been inactive but working out how to make OSX 10.14.x command line audio player have a variable sample rate.
This is a back door as afplay does not have a sample rate flag unlike aplay for ALSA, in Linux flavours.
This is a DEMO only but a derivative of it will... (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT NETBSD
joy
JOY(4) BSD Kernel Interfaces Manual JOY(4)NAME
joy -- game adapter driver
SYNOPSIS
joy* at acpi?
joy* at eap?
joy* at eso?
joy0 at isa? port 0x201
joy* at isapnp?
joy* at ofisa?
joy* at pci?
joy* at pnpbios? index ?
DESCRIPTION
This driver provides access to the game adapter. The lower bit in the minor device number selects the joystick: 0 is the first joystick and
1 is the second.
The game control adapter allows up to two joysticks to be attached to the system. The adapter plus the driver convert the present resistive
value to a relative joystick position. On receipt of an output signal, four timing circuits are started. By determining the time required
for the circuit to time-out (a function of the resistance), the paddle position can be determined. The adapter could be used as a general
purpose I/O card with four analog (resistive) inputs plus four digital input points.
Applications may call ioctl(2) on a game adapter driver file descriptor to set and get the offsets of the two potentiometers and the maximum
time-out value for the circuit. The ioctl(2) commands are listed in <machine/joystick.h> and currently are:
JOY_SETTIMEOUT Sets the maximum time-out for the adapter.
JOY_GETTIMEOUT Returns the current maximum time-out.
JOY_SET_X_OFFSET Sets an offset on X value.
JOY_GET_X_OFFSET Returns the current X offset.
JOY_SET_Y_OFFSET Sets an offset on Y value.
JOY_GET_Y_OFFSET Returns the current Y offset.
All these commands take an integer parameter.
read(2) on the file descriptor returns a joystick structure:
struct joystick {
int x;
int y;
int b1;
int b2;
};
The fields have the following functions:
x current X coordinate of the joystick (or position of paddle 1)
y current Y coordinate of the joystick (or position of paddle 2)
b1 current state of button 1
b2 current state of button 2
The b1 and b2 fields in struct joystick are set to 1 if the corresponding button is down, 0 otherwise.
The x and y coordinates are supposed to be between 0 and 255 for a good joystick and a good adapter. Unfortunately, because of the hardware
hack that is used to measure the position (by measuring the time needed to discharge an RC circuit made from the joystick's potentiometer and
a capacitor on the adapter), calibration is needed to determine exactly what values are returned for a specific joystick/adapter combination.
Incorrect hardware can yield negative or values greater than 255.
A typical calibration procedure uses the values returned at lower left, center and upper right positions of the joystick to compute the rela-
tive position.
This calibration is not part of the driver.
FILES
/dev/joy0 first joystick
/dev/joy1 second joystick
SEE ALSO acpi(4), eap(4), eso(4), isa(4), isapnp(4), ofisa(4), pci(4), pnpbios(4)AUTHORS
Jean-Marc Zucconi wrote the FreeBSD driver. Matthieu Herrb ported it to NetBSD and wrote this manual page.
BSD July 22, 2006 BSD