Friday, 19 June 2015

Fuse SDL full screen with no picture / blank screen on Raspbian

OK, so slightly out of sync with the whole Pi-Spectrum mash up build log, but I've been spending a little time playing with the software.

When using the Raspbian Wheezy image with the SDL version (read command-line version) of the Fuse spectrum emulator, it would not go full screen over HDMI.   I'd be left with a plain black screen, yet I could hear the emulator running through the speakers.

I noticed that the Fuse-SDL that comes as part of Retropie doesn't suffer this problem.   Since Retropie is based on Raspbian I assumed it was down to emulator config.

For a number of reasons, I don't particularly want to use Retropie - preferring to manage the emulators myself and omit the EmulationStation front end, for now at least.

Anyway, the long and short of it is that it seems the SDL version included with the Raspbian image has a bug in it (this bug is not present in Retropie), and a helpful soul has recompiled it with this bug fixed.

Instructions can be found here:

https://www.raspberrypi.org/forums/viewtopic.php?f=78&t=98374

Find the post by exobuzz, dated Mon Feb 16, 2015 11:15pm.

Upon installing the deb packages, I got a couple of errors regarding dependencies, but the FUSE emulator now works beautifully, full screen, over HDMI or composite.

Just thought this tip might prove useful to you guys who are equally as nooby at Linux as I am...

Monday, 25 May 2015

What happened to the coding? The Raspberry Pi Powered ZX Spectrum got in the way!

Okay, so there have been no articles on mobile development... No excuses.  But, I've found something else I want to blog about...

Rediscovering my first...


Like many guys my age (pushing 40) I started computing on a ZX Spectrum.   Some time around 1983, we had a 16k, rubber keyed beauty that my mum bought second hand from a work colleague.

Cue playing classics such as GalaxiansPhasorchaseOrbiterGround Attack and Haunted Hedges...

It lasted about 18 months before it reverted to a constant purple screen with flashing blocks.  No more ZX funtime...

Until Christmas 1985, that is... when Father Christmas surprised me with a Dixons Action Pack.... This contained a 48k Spectrum+, 10 "games" (ahem), Kempston Joystick interface, a Quickshot 1 and a tape player.



This little black beauty worked faultlessly for 4 years, joysticks came and went (until I discovered joystick perfection in the form of the Competition Pro 5000) as did tape players, until finally time itself caught up and Santa again worked his magic and left an Amiga 500 under the tree.

Fast forward 25 years to 2015.  The spectrum has seen occasional nostalgic use, but has spent the last 12 years in a plastic Burton's bag, under a table in my old bedroom at my parent's house.   Until recently that is when I attempted to demonstrate to my 7 year old twins "how it was in my day".

Inside the bag was one cassette.  Renegade, by Imagine.   Although I couldn't find the tape lead, to my surprise I managed to load the game at the first attempt using a stereo lead, half pulled out!



The game worked for 30 mins (without half the keyboard - new membrane required methinks) and the kids loved it... then the picture started flickering. Then the game crashed and wouldn't reload, and then the screen went black...

After a couple of days, I tried the old girl again and to my relief, she still works.  Chatting to fellow owners on the Spectrum 4Ever Facebook group I realised I probably need some new capacitors and a ULA heatsink.  

But this got me thinking...  could I get the Spectrum experience without risking going through the inconvenient setup of the classic hardware?   Perhaps a Raspberry Pi in a Spectrum+ case, which for all intents and purposes looks indistinguishable from the real thing?

A quick google search showed it had been done before - but now its my turn!

The Case...

OK - so the good news is I'm not going to tear into my beloved Spectrum+ to use the case for this project.   I'm a believer in preserving classic hardware as much as possible.   So, I took to eBay, and for what I consider a bargain £11.54,  I got myself a rather nice, empty, Spectrum+ case....


The case is in great condition - with the exception of one of the rubber feet which appears to have degraded and become a kind of sticky blob.  Other than that, 20 minutes with the baby wipes and a Nintendo DS stylus to get into the cracks, and the case is spotless, with no yellowing of the lettering and no grubby deposits on the keys.   

A sticker on the back says "Keyb OK" which is a good sign, and interestingly this Spectrum was built by Samsung in Korea.   My original one is UK made. The other difference I've found is that the keyboard back plate on this one is steel, whereas on my UK model it's plastic.  

From what I've read online, the Samsung models have a much better keyboard membrane which probably explains why this one still works and my original one is now on its way out...



No cuts, no buts.

One of my personal goals for this project:  I don't want to modify the case in any way.   The other projects I have seen have been great, but the builders seem to have taken a saw to the case to make things fit, mainly around the sockets on the back.  I don't want to do that.  I'm not overly precious about these things, but I think it's a nice goal to have - keep it looking as original as possible.

Next time...

The first job on my list - getting the keyboard working. 

Sunday, 18 January 2015

Welcome to my blog!

Hi everyone!

After many years developing Windows applications, websites and data warehouses, my career has turned to mobile development.  Mostly Android, but some iOS too.

Like all devs I spend a lot of time Googling for code and reading articles on Stack Overflow, but quite often answers can be long winded or misleading.

I'm hoping to use this blog to cut out a lot of the fluff and document quick, simple solutions to some of the programming issues I face when I'm coding.

My intention isn't to give full-on in-depth descriptions on every topic: but to convey enough information to allow you to get something up and running quickly and give you a push in the right direction.

Cheers, and best wishes,

Simon.