Go Down

Topic: pir sensor (Read 8 times) previous topic - next topic


The N/C's are easy. N as in not, c as in connected.


Hi,  I'm looking at the PIR sensor code above.  Does anyone know offhand what the difference is between a long unsigned int and an unsigned long?  


I would imagine nothing.


Nov 10, 2010, 06:04 pm Last Edit: Nov 10, 2010, 06:08 pm by Schmidtn Reason: 1
The long allows you to store more data, but also sucks up sketch space.

Unsigned Integer:

Long with the variable:

I never come close to using up all of my sketch size so I normally throw long in with my sensor integer values just because I'm a lazy coder.

Go Up