Go to advanced search

by BBUK
Wed Feb 20, 2013 10:58 am
Forum: Gaming
Topic: Joystick / Gamepad install for Advance Mame
Replies: 11
Views: 30587

Re: Joystick / Gamepad install for Advance Mame

Hi all. I am currently using a Nintendo Wavebird wireless joystick/gamepad (I hacked the reciever unit to include an Arduino Leonardo that presents itself to the Pi as a USB joystick/keyboard). The code for the Leonardo is a mash-up between a sketch prepared by a chap that wanted the Leonardo to app...
by BBUK
Tue Feb 19, 2013 11:45 pm
Forum: Gaming
Topic: AdvMAME earlier versions for better performance ...
Replies: 27
Views: 14100

Re: AdvMAME earlier versions for better performance ...

Hi Paradiselost.

You still have problems with your line endings being in dos format (see the %0D at the end of the wget lines).

run this

Code: Select all

sudo sed -i s/\\r//g /boot/mamebox.sh
and try again...
by BBUK
Tue Feb 19, 2013 9:51 am
Forum: Gaming
Topic: Advmame and DISPMANX
Replies: 9
Views: 2376

Re: Advmame and DISPMANX

Hi Welshy

Have a look at the hdmi_mode= settings in config.txt here: http://elinux.org/RPi_config.txt.

HTH
by BBUK
Mon Feb 18, 2013 9:02 am
Forum: Gaming
Topic: Advmame and DISPMANX
Replies: 9
Views: 2376

Re: Advmame and DISPMANX

Hi all I have been working with Vanfanel's brilliant dispmanx backend to SDL. I have managed to configure AdvMame (I am using 0.94) so that it will always not scale (such that the backend will kick in and scale to full screen resolution). The trick is the following lines in advmame.rc: display_adjus...
by BBUK
Sat Feb 16, 2013 1:41 pm
Forum: Gaming
Topic: AdvMAME earlier versions for better performance ...
Replies: 27
Views: 14100

Re: AdvMAME earlier versions for better performance ...

Hi Paradiselost That would typically be caused by the script being in msdos format rather than linux format. There are three invisible characters at the start of an msdos file which confuse the interpreter. There is a tool called dos2unix which can remove these characters but (I think) that would ha...
by BBUK
Thu Feb 07, 2013 9:55 pm
Forum: Gaming
Topic: AdvMAME earlier versions for better performance ...
Replies: 27
Views: 14100

Re: AdvMAME earlier versions for better performance ...

Guys, if you want a faster load time - here is a dirty hack

In advance/linux/vfb.c about line 965, change the line

Code: Select all

#define VSYNC_LIMIT 100000
to read:

Code: Select all

#define VSYNC_LIMIT 50
HTH
BBUK
by BBUK
Mon Feb 04, 2013 8:37 pm
Forum: Gaming
Topic: AdvMAME earlier versions for better performance ...
Replies: 27
Views: 14100

Re: AdvMAME earlier versions for better performance ...

and the line

Code: Select all

mv advance/d2/temp.cc advance/d2/temp.cc
should be

Code: Select all

mv advance/d2/temp.cc advance/d2/d2.cc
Sorry...
by BBUK
Mon Feb 04, 2013 8:33 pm
Forum: Gaming
Topic: AdvMAME earlier versions for better performance ...
Replies: 27
Views: 14100

Re: AdvMAME earlier versions for better performance ...

Just in case anyone tries the script - it won't work!

The line

Code: Select all

if [ ! -f ~/advancemame-0.94.tar.gz ]
should be

Code: Select all

if [ ! -f ~/advancemame-0.94.0.tar.gz ]
Rest assured that I have done 100 lines of "Test scripts before posting"
by BBUK
Mon Feb 04, 2013 4:48 pm
Forum: Gaming
Topic: AdvMAME earlier versions for better performance ...
Replies: 27
Views: 14100

Re: AdvMAME earlier versions for better performance ...

Hi welshy. Yup, I know what that is. In advance/linux/vfb.c there is a line with an errant MAP_FIXED option in it. Change MAP_SHARED | MAP_FIXED, to MAP_SHARED, The script picks this up. If you have already compiled, maybe try running make again (i.e. without a make clean), the Makefile *may* be cle...
by BBUK
Sun Feb 03, 2013 10:42 pm
Forum: Gaming
Topic: AdvMAME earlier versions for better performance ...
Replies: 27
Views: 14100

AdvMAME earlier versions for better performance ...

Hi all. Thanks to everyone for their work on the emulators. I have been building on that this weekend (so that I can get a full speed/full sound version of Star Wars up and running - I tried a couple of the existing solutions but all seemed a bit choppy). A natural place to look for increased perfor...
by BBUK
Tue Dec 18, 2012 2:36 pm
Forum: Python
Topic: How to set a GPIO pin value prior to making it an output?
Replies: 17
Views: 3575

Re: How to set a GPIO pin value prior to making it an output

The 595 actually is connected to a (literal) tower of ULN2801 darlingtons (3 soldered on on top of the other!) so that the 3.3V 595 can drive the 5V many amps required by the steppers. Hmm. I am not sure this is an optimal solution for driving high current inductive loads like a stepper. (Very) sli...
by BBUK
Tue Dec 18, 2012 11:02 am
Forum: Python
Topic: How to set a GPIO pin value prior to making it an output?
Replies: 17
Views: 3575

Re: How to set a GPIO pin value prior to making it an output

Sorry - first post with duff information (did not read your post properly). I would set up whatever R-Pi pin is connected to /OE as an output after you have serial shifted known "good" values into the 595 (assuming you are using that to connect to your stepper driver). Hope this is more useful than ...
by BBUK
Tue Dec 18, 2012 10:42 am
Forum: Python
Topic: How to set a GPIO pin value prior to making it an output?
Replies: 17
Views: 3575

Re: How to set a GPIO pin value prior to making it an output

Although if you don't want to mess with the libraries, and as a kludge, you could set each of the outputs low as soon as you initialise them in the loop in GpioSetup()... if gpiocfg[pinnum] == 0: DebugPrint("pin number ", pinnum, " gpio pin ", gpiomap[pinnum], " is an output.") GPIO.setup(gpiomap[pi...

Go to advanced search