Chumby - C/C++ Framebuffer

Last year sometime I purchased a chumby one, with the main goal to develop some funky widgets and also I needed a new alarm clock. The widgets that are on the chumby site are all developed in flash, and I never quite got round to paying the massive price for the flash SDK, but luckily on the good ol’chumby board they’d released a C/C++ compiler. All great - except that there was no Mac OSX toolchain and I didn’t feel like trying to get it to compile on OSX, lucky for me a native C++ compiler was made available. This meant that I no longer had to mess around with cross compiling between the chumby and OSX

The instructions for installing the native C/C++ compiler can be found here http://www.demandperipherals.com/docs/chumbot_chumby_intro.pdf

To compile code on the chumby one, install the compiler on the chumby, scp the source code file to the chumby and then gcc -o file file.c.

So, with the compiler I could get to work with developing stuff and after the standard hello world the next question was how to get things displaying on the screen. After a bit of trial and error and head scrapping I came up with the code attached. I can’t say it’s the best way to do it, and there are probably a few issues with it, but it might help you if you’re trying to figure out how to get things displayed on the chumby. (before you run the code make sure you stop the control panel on the chumby, otherwise nothing will be displayed)

Hope it helps!

David Roberts

Read more posts by this author.

Newcastle upon Tyne, UK https://davidatroberts.github.io/