Hello
@KayBee,
The usual way of using booleans in C is one of the following:
- on C99 and up, you can include <stdbool.h> and use the type 'bool' with values 'ture' or 'false'. This is what Therion's reply, above, is referring to.
- for ANSI C or C89 (same thing) the usual way is to use type 'int' with values of 0 or 1.
I like your typedef/enum trick. It should work fine, as long as you are careful when incorporating code from other projects into your own.
Note that the type 'boolean' is particular to the Wire/Arduino language and is not a part of C or C++. (unless you define it yourself of course)
Hope this helps!