Go Down

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

PaulS

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

Nopalito

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?  

Grumpy_Mike

I would imagine nothing.

Schmidtn

#13
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:
http://www.arduino.cc/en/Reference/UnsignedInt

Long with the variable:
http://arduino.cc/en/Reference/UnsignedLong

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