I have an led project where I need to set brightness values (pwm) of 3 leds....I'd like the device to remember my last settings every time I turn it on....
is this possible with arduino?
I need to set brightness values (pwm) of 3 leds....It's 3 integer values only that need to be stored
No, it's three byte values. There is no reason to use an int to store a value between 0 and 255, when a byte will work, and is MUCH easier to save and retrieve from EEPROM.
PaulS:
No, it's three byte values. There is no reason to use an int to store a value between 0 and 255, when a byte will work, and is MUCH easier to save and retrieve from EEPROM.
Paul, he said integer not int. An int is a 16 bit data type on Arduino. An integer is a whole number with no fractional part. Anything you might store in a byte type variable would certainly qualify as an integer.