Code explanation
-
Hi, this is my first post so I would first like to thank you for the nice tone of the forum. So to my question. I have used this code in my project and it works perfectly well, but I can't get it, and it bother me of course. Is there any kind soul that can explain? ```
== HIGH? 1: 1
-
@royzone Your code is a bit incomplete because you did not include the entire line but I think that you are comparing some boolean variable to the value "HIGH" and if it is HIGH then you send the value "1" with ack (acknowledgement).
If an experienced coder see that my asumption is incorrect please correct me
-
Is it the conditional operator in C language you mean?
https://en.wikipedia.org/wiki/%3F:#C
-
@bjacobse Ok, now i understand, thank you for the link and for a quick reply. Case closed
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
No merge into master in the last 5 years, should we use development?
General Discussion • 23 Sept 2024, 17:48 • kiesel 6 days ago -
Email notifications received twice
General Discussion • 6 Feb 2023, 16:15 • Jodaille 4 days ago -
Which device I have to use to connect with accelerometer before connecting to my pc?
General Discussion • 24 Jan 2023, 17:16 • Yada Kijsathan 15 days ago -
Code Garage to the rescue.
General Discussion • 11 Jan 2025, 11:25 • skywatch 23 Feb 2025, 14:57 -
Meet in Malmö, Summer 2016?
General Discussion • 1 Feb 2016, 15:34 • bjacobse 28 days ago