I just went to your Kickstarter page and I really liked to see that you have gone beyond the keyboard and screen and are incorporating Arduino in the lessons. The example on the page was switch/LED project. What other Arduino applications are you thinking of including in the book?
The book actually doesn't include Arduino-specific code or lessons. I wrote on the campaign page that the programming concepts and C syntax can be applied to programming the Arduino (such as for loops, while loops, if/else, functions, etc.). Each code example in the book uses the C standard library stdio.h, and prints the output to the screen using the printf() function. I chose to design the book this way so that the book and a free C compiler is all the reader needs to test out the code and play around with it to understand how the logic works. The purpose of the book is to gain a good understanding of fundamental programming concepts and C syntax. I'm planning to have a resources page at the end of the book that describes how C programming is used in embedded systems and mentions the Arduino as a resource.
One thing about the Arduino that makes it difficult is that I've never actually seen it officially said that the common Arduino programming language is in fact C++. Although years of cautiously exploring the boundaries have convinced me that most, if not all of the language features work on that platform.
What's definitely different is the runtime library environment. When compiling ".ino" files, the #include for "arduino.h" is implicit, and doesn't need to be explicitly stated in the sketch. And the standard C/C++ libraries may only be available as stripped-down versions, or missing.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
posted 1 month ago
This is in the Arduino FAQ:
"Can I program the Arduino board in C?"
"In fact, you already are; the Arduino language is merely a set of C/C++ functions that can be called from your code. Your sketch undergoes minor changes (e.g. automatic generation of function prototypes) and then is passed directly to a C/C++ compiler (avr-g++). All standard C and C++ constructs supported by avr-g++ should work in Arduino."
That's a very big dog. I think I want to go home now and hug this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop