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 -
Email notifications received twice
General Discussion • 6 Feb 2023, 16:15 • Jodaille a day ago -
What is form factor?
General Discussion • 15 Jan 2025, 07:33 • Luosi 15 Jan 2025, 07:33 -
Human presence sensors....
General Discussion • 31 Jan 2025, 10:54 • skywatch 9 Feb 2025, 19:36 -
Which device I have to use to connect with accelerometer before connecting to my pc?
General Discussion • 24 Jan 2023, 17:16 • Yada Kijsathan 11 days ago -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24