Arduino digitalWrite 1 or 0 instead of HIGH or LOW Is it ok to use 

digitalWrite(pin, 1) instead of digitalWrite(pin, HIGH)


or 

digitalWrite(pin, 0) instead of digitalWrite(pin, LOW)


I want it that way to make the coding lesser because I save values on EEPROM with 1's and 0's. So if I want to use EEPROM value, I can call it this way

digitalWrite(pin, EEPROM.read(1))
Yes, that is fine.  LOW is 0 and HIGH is 1.  digitalWrite() sets the output to off if it receives a 0 and on if it receives anything of 1 or more.

That means that these are all equivalent:

digitalWrite(pin, HIGH);
digitalWrite(pin, 1);
digitalWrite(pin, 69);


It's especially useful when you are examining a variable for, say, a certain bit being set:

digitalWrite(pin, bytevar &amp; 0x80);


That will set the pin to high on any value from 128 to 255 in the byte variable, and low for anything below 128.