A series of example programs for the BeagleBone. I've tried to comment things quite thoroughly and I hope this helps.