Irbutton will never be less then 9 because you and it with 127. So your if will always be false.
Irbutton will never be less then 9 because you and it with 127. So your if will always be false.
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
so u r saying that i should and it with 65???
BTW it works with less than 9....
I'm sorry, I am completely wrong. Need more coffee. I was thinking OR.
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
np.you had me thinking there for a moment![]()
but my problem is the same just a pulse spike of 5 volts on button press i want to keep it permantently off or on when io press the button only once...![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
if tmp >= 500 then
Will never be as tmp is BYTE size
Dave
Always wear safety glasses while programming.
Every iteration of your loop turns the led off right after start. There's you problem.![]()
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Bookmarks