Although the Aruduino environment supports the ternary "Conditional Operator", there is NO mention ofit in ANY of the online documentation. There should be an a additional heading on the language reference page:"Conditional Operator""? : (ternary operator)"With appropriate explanation so that newbies can discover it's usefulness.
B operator worked for more than 8 bits.
#ifndef Binary_h#define Binary_h#define B0 0#define B00 0#define B000 0#define B0000 0#define B00000 0#define B000000 0#define B0000000 0#define B00000000 0#define B1 1#define B01 1#define B001 1#define B0001 1#define B00001 1#define B000001 1#define B0000001 1#define B00000001 1
"Conditional Operator" "? : (ternary operator)"
The doc on 'variables' should mention what VALUE is set for "HIGH" and "LOW" and that it requires an INT type,not boolean, which is what one would assume for a two state "type"
All in all, I have to acknowledge that they have made quite a good choice: Real C/c++ so users can get advanced but only expose/document a reasonable subset.
At the time though there weren't any good other platforms (IMO) so I came back to Arduino and delved a bit deeper. Then of course I realized that there are no real restrictions on what you can do, it's just C/C++.I still reckon that there should be an "advanced user" section(s) to the docs, but like I think everyone else I've given up on anything getting changed in this area.
The problem with having an "advanced user" section to the docs (and this is pure conjecture on my part) is that you would have beginner users trying to use and do things that they have no understanding of, or even have the base concepts down to form the understanding. They might even try to use and do things with the idea that it is what their project needs because it is "more advanced" or because they have an incomplete (or wrong) understanding of what the advanced concepts allow them to do.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16