Just to be clear, were you able to open the zip archive with the source code files ok? There had previously been trouble with the file not opening in file extraction utilities.
Assuming you were able to extract the archive ok, I take your question to mean what are you supposed to do with all those C source files, is that right? The Gertboard manual talks about the C source code examples:
For actual usage, one would copy the zip download to the Pi and then unzip it. There is a makefile which would allow one to compile all the code examples via the make utility. Once the Gertboard is connected, one could then run the desired demo program on the Pi.
However, I have to admit it would probably be tough to understand those examples with no prior knowledge of C. I think Python is proving to be a much better language for novices who want to interface electronics projects with the Pi. I suspect that once the Gertboard is in the wild that we'll see these C demo programs rewritten in Python by the community.
Umm.. For a complete novice, this file is garble. I don't understand any of it. I understand these files contain C code to perform some function on the Gertboard but there's no simple explanation to what that is!!! If the idea is to allow people with no knowledge, to gain knowledge, this doesn't help!! And where do you place the code and execute it???
Thanks for the feedback, Brian. There was an issue with the .tar.gz archive, so the Gertboard source code is now packaged as an attached .zip file (gertboard_sw_20120725.zip).
Top Comments