Reindenting C Source Code Files With Notepad++

By , February 19, 2012 11:24 am
MikroC indented code

MikroC indented code

When you are working with source code it is nice to have the code properly indented. You can automatically reformat your unindented C / C++ files in Notepad++ to have proper indentation using the TextFX and NppAutoIndent plugins.

When using the mikroC compiler it is best to have your indentation done using 2 spaces instead of the tab character. For this task it is handy to have Notepad++ automatically convert the tab characters into spaces.

Continue reading 'Reindenting C Source Code Files With Notepad++'»

A Frosty Morning in Dover

By , February 17, 2012 9:26 am
My front lawn was covered with a thin layer of frost this morning.

My front lawn was covered with a thin layer of frost this morning.

This morning when I looked out my front window I noticed a thin layer of frost covered the tree branches and  the grass on my lawn. The air temperature was a cool -5°C.

Winter Aerial Photography Around Polly Cove

By , February 17, 2012 12:49 am
An aerial view of the old foundations at Polly Cove in the West Dover Barrens.

An aerial view of the old foundations at Polly Cove in the West Dover Barrens.

The weather has been nice enough the last few days to get out and take some aerial photos using my trusty Multiplex EasyStar model airplane. The photos were taken at noon on Feb 14th, 2012 around the old ruins at Polly Cove, West Dover, Nova Scotia. To take the photos I used CHDK + the UBASIC Countdown Intervalometer script on my Canon Powershot SD780IS camera with the shutter speed set to 1/1500th second.

Continue reading 'Winter Aerial Photography Around Polly Cove'»

Exploring the 2012 Winter Warmup RetroChallenge 2nd Place Prize

By , February 14, 2012 10:39 pm
An awesome package arrived in the mail today!

An awesome package arrived in the mail today!

Today I had a delightful parcel arrive in the mail - my prize from the 2012 Winter Warmup RetroChallenge. The gift was sent all the way from Scotland by Royal Mail and arrived in West Dover in only 10 days. The prize was a PSION series 5 PDA that was generously donated by Dale ( wgoodf ). Thanks Dale!

This was my first time using a PSION PDA so I really appreciated Dale's tip about the battery hatch being located behind the hinge on the back. Without that tip I'm sure it would have taken me ages to find it.

The PDA has a touch sensitive greyscale screen with a green coloured backlight, a foldout keyboard, a built-in microphone and speaker, and a stylus. The PSION 5 comes with a few apps such as a word processor, a spreadsheet program, a database program, a dictionary and thesaurus, a day-timer, scientific calculator, communications program, an audio recorder, and a sketching program.

Here I turned on the PSION Series 5 PDA for the first time.

Here I turned on the PSION Series 5 PDA for the first time.

Continue reading 'Exploring the 2012 Winter Warmup RetroChallenge 2nd Place Prize'»

Mikromedia PIC32 3D Accelerometer Demo

By , February 7, 2012 11:31 am

I created this demo to show a real-time 3D view of the ADXL345 accelerometer data using the mikromedia PIC32 board from MikroElektronika.

The onscreen numbers are the tilt in degrees. The 3D axis view compass shows the orientation of the X, Y, and Z axes. The red line is the X axis, the green line is for the Y axis, and the blue line is the Z axis.

In the demo the blue (Z axis) line always tries to point upright.

The 3D engine is based upon the code from my PIC Interactive 3D Wireframe Rendering Engine and dsPIC 3D engine. The 3D Accelerometer Demo firmware was written in MikroC Pro for PIC32.

This firmware requires a MikroMMB for PIC32 board revision 1.10

You can download the 3D Accelerometer Demo firmware from libstock.com

mikroMMB 3D Accelerometer Demo

mikroMMB 3D Accelerometer Demo

2012 RetroChallenge News: IRIX Soccer V1.0 Alpha Released

By , January 29, 2012 3:49 pm

Edit: I'm very honoured to announce that IRIX Soccer won 2nd place in the 2012 RetroChallenge! Thanks for everyone's feedback and suggestions.

January 29th Progress Report

Today I completed the alpha version of my IRIX soccer game for the 2012 Winter Warmup RetroChallenge. After seeing the @retrochallenge twitter stats on the other RC entrants, I made the decision to ship the alpha version without all sorts of extra bells and whistles. I didn't want Fahrfall to be the only one to complete a retro game for the contest!

The alpha version of the game is designed for two players.

You can download the program and source code.

Game Screenshots

This is a screenshot of me playing the alpha version of IRIX Soccer.

This is a screenshot of me playing the alpha version of IRIX Soccer.

The purple team scores a goal!

The purple team scores a goal!

Continue reading '2012 RetroChallenge News: IRIX Soccer V1.0 Alpha Released'»