Tag Archive > c

Parsing RSS on an 8-bit Micro

One of the most common questions asked of my Embedded RSS Reader is how to process the XML data of an RSS feed on the 8-bit microprocessor. In a conventional application, it is trivial to use an XML library to parse the data into a tree-like structure. In PHP5, for instance, you could simply write: [...]

Continue reading

, , , , ,

Pointers on the Atmel AVR

I have just resolved a rather weird bug in a 3rd party library for the Atmel AVR. Compiling under OS X the code runs perfectly, but on the AVR it runs like a dog. The secret is, apparently, in the heavy use of C pointers and pointer arithmetic to manage complex data structures within the [...]

Continue reading

, , ,

Debugging in OpenGL

The computer scientist, Brian Wilson Kernighan once said: Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. This is well enough, but trying to do some graphics programming, using the OpenGL, [...]

Continue reading

, , ,

Good Documentation

I am not one for providing copious documentation within source code – especially when it is totally unnecessary. However, I do like to see complex structures and crazy little hacks statements are given a little qualification. Today, whilst trying to port a software library to the AVR family of microprocessors I came across a good [...]

Continue reading

, , ,

Drawing a Sphere

I have spent the morning trying to draw a wireframe sphere, using OpenGL but without the standard glu_ and glut_ extensions. I now have a sphere with a very pleasant spiral pattern on it – just a shame watching it rotate makes my head hurt!

Continue reading

, ,