Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 1 month ago.
Why is there no HIGH/LOW , TRUE/FALSE defines
I know they are easy to define, but why are they not (or don't appear to be) already in the programming syntax for mbed? Have they gone out of fashion or frowned upon for some reason? Cheers Mike
1 Answer
10 years, 1 month ago.
true/false exist, or do you mean high = true, low = false defines? There is something to say both for having them and for not having them. As you say, they are easy to define if you like to have them. But in general 1 and 0 (or true and false) do the job fine. In general to describe logic signals 1 and 0 are used alot.