Thanks! I'm happy to have solved it mostly myself. Can you explain the purpose of byte and unsigned long?
Quote from: squid08 on Nov 20, 2012, 11:47 pmThanks! I'm happy to have solved it mostly myself. Can you explain the purpose of byte and unsigned long?They're other types of integers. in an arduino (it changes), an int is two bytes; a byte is one byte; and a long is four bytes. `unsigned' means it will never be negative, so instead of representing (for a 1 byte number for example) -128 to 127, an unsigned byte can represent 0 to 255.unsigned long is the type returned by millis() so it should be used for variables storing the time.byte is the shortest possible value so I used it to save memory because it can only be HIGH or LOW anyway
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16