Author Topic: My First Raspberry Pi Thing  (Read 4298 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
My First Raspberry Pi Thing
« on: September 09, 2012 »
This is my first thing for Raspberry Pi.

It's basically a port of tinyptc and tinysid with a crappy example of a pixel demo.

The attachment is a gzipped tar file of my source directory
Really, all you should have to do is unpack it and type 'make'.

You may need to install the libasound2-dev package first
Code: [Select]
sudo apt-get update
sudo apt-get install libasound2-dev

Some details:
You will need to be using the latest Debian Wheezy distro.
I strongly suggest you follow all the instructions here to get everything bang up-to-date.
The ptc driver is using OpenGL ES1.1.
The sid driver is totally unchanged and I have written a shim using ALSA that lets the sound come out of the speakers.
The screen is pixels rendered at 640x480 and hardware scaled up to full screen.  This scaling is essentially free.
The bad news for pixel pushers is that in my tests I was barely able to fill each pixel once in RAM (640x480x32) and then copy it up to the graphics chip and keep 60fps.
I think to get great demos you will have to use OpenGL ES.

I have basically given up trying to get a cross compiler working on a Linux VM.  It worked out of the box, but installing anything which is not stock libraries and includes is too goddam painful.
Instead I am using putty to create a secure shell window into the pi where I can simply type 'make' and trigger the exe to run, and editing the files in Visual Studio over samba (windows share).
This enabled me to make far more rapid progress than before.

Have fun!

Jim
Challenge Trophies Won:

Offline tnk2k

  • ZX 81
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: My First Raspberry Pi Thing
« Reply #1 on: October 04, 2012 »
Nice! Going to try it tonight!

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
Re: My First Raspberry Pi Thing
« Reply #2 on: October 04, 2012 »
I missed this before Jim, thanks for posting. I was trying to find a nice method of compiling/running stuff while developing, and this sounds like a good way to go. Will give it a try when I get some time :)

K++
raizor

Challenge Trophies Won:

Offline Chalisque

  • ZX 81
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
Re: My First Raspberry Pi Thing
« Reply #3 on: June 01, 2013 »
Not a demo yet, but the technique I am playing with is using a laptop USB to power the Pi, a crossover ethernet cable to communicate and running all display via X11.  I plan to take IDLE as sample code in python and craft my own IDE for the Pi, then get to grips with the lower levels of the hardware.  If all goes well, I might actually be able to code a small demo.